markdown 在Mac上设置和使用Python3 Virtualenv

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 在Mac上设置和使用Python3 Virtualenv相关的知识,希望对你有一定的参考价值。

## Python3 Virtualenv Setup

##### Requirements
* Python 3
* Pip 3

```bash
$ brew install python3
```

Pip3 is installed with Python3

##### Installation
To install virtualenv via pip run:
```bash
$ pip3 install virtualenv
```

##### Usage
Creation of virtualenv:
```bash
$ virtualenv -p python3 <desired-path>
```

Activate the virtualenv:
```bash
$ source <desired-path>/bin/activate
```

Deactivate the virtualenv:
```bash
$ deactivate
```


[About Virtualenv](https://virtualenv.pypa.io/en/stable/)

以上是关于markdown 在Mac上设置和使用Python3 Virtualenv的主要内容,如果未能解决你的问题,请参考以下文章