Skip to content

Instantly share code, notes, and snippets.

@stevedoyle
Created December 23, 2016 13:26
Show Gist options
  • Save stevedoyle/00d5ef0a7c4d3e19df7ebc58d5a70f63 to your computer and use it in GitHub Desktop.
Save stevedoyle/00d5ef0a7c4d3e19df7ebc58d5a70f63 to your computer and use it in GitHub Desktop.
# virtualenv setup
cd proj_folder
virtualenv venv
# or with a particular version of python
virtualenv -p /usr/bin/python2.7 venv
# Activate it
source venv/bin/activate
# Use pip to install packages as usual into the environment
# Deactivate it when done
deactivate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment