Created
March 10, 2016 13:56
-
-
Save dracos/5d9e7b6cdb1d3ff81780 to your computer and use it in GitHub Desktop.
Installing python2 & python3 and virtualenv (Ubuntu 14.04)
This file contains hidden or 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
# Python 2 | |
sudo apt-get install python-pip | |
pip install --user virtualenv | |
python ~/.local/bin/virtualenv venv2 | |
# Python 3, option 1 | |
sudo apt-get install python3-pip | |
pip3 install --user virtualenv | |
python3 ~/.local/bin/virtualenv venv3 | |
# Python 3, option 2 | |
sudo apt-get install python3.4-venv | |
pyvenv-3.4 venv3 | |
venv3/bin/pip install pip --upgrade # If you want, it's 1.5.4 bundled by default |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For environment variables, depends what you want, but e.g.:
pip install autoenv
, source that in your.bashrc
and put your environment variables in.env
files that are automatically run when you cd into that directory;