Skip to content

Instantly share code, notes, and snippets.

@tbalz2319
Last active January 9, 2020 03:32
Show Gist options
  • Save tbalz2319/6dc66a53c7ce9ea6919a379ee27487ad to your computer and use it in GitHub Desktop.
Save tbalz2319/6dc66a53c7ce9ea6919a379ee27487ad to your computer and use it in GitHub Desktop.
Create virtualenv for python
#How to activate the Python Virtual Environment
#MacOSX Mojave custom python from brew
virtualenv -p /usr/local/opt/python@2/bin/python venv
source venv/bin/activate
#Python 2.7+
virtualenv venv
source venv/bin/activate
#Python3+
python3 -m venv venv
source venv/bin/activate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment