Based on: https://gist.github.com/pandafulmanda/730a9355e088a9970b18275cb9eadef3
- Python 3
- Pip 3
$ brew install python3
Pip3 is installed with Python3
To install virtualenv via pip run:
$ pip3 install virtualenv
Creation of virtualenv:
$ virtualenv -p python3 <desired-path>
# Example. venv is a common naming for this
$ virtualenv -p python3 venv
Activate the virtualenv:
$ source <desired-path>/bin/activate
Deactivate the virtualenv:
$ deactivate
- About Virtualenv
- A good collection of .gitignore files, including a Python one ;)