Skip to content

Instantly share code, notes, and snippets.

@ericbolo
Last active April 24, 2018 17:37
Show Gist options
  • Save ericbolo/128a24f7b3c5b280da0be526cf947651 to your computer and use it in GitHub Desktop.
Save ericbolo/128a24f7b3c5b280da0be526cf947651 to your computer and use it in GitHub Desktop.
Running Python projects in a virtual environments
Virtual environments allow you to install dependencies without conflicting with your current installs.
## Installing
[sudo] pip install virtualenv
sudo /usr/bin/easy_install virtualenv
"" Running
virtualenv myenv
source myenv/bin/activate
Deactivate enironment by simply typing "deactivate" as a terminal command
Create virtualenv with specific version of python:
virtualenv --python=/usr/bin/python2.6 <path/to/new/virtualenv/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment