Last active
April 24, 2018 17:37
-
-
Save ericbolo/128a24f7b3c5b280da0be526cf947651 to your computer and use it in GitHub Desktop.
Running Python projects in a virtual environments
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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