Skip to content

Instantly share code, notes, and snippets.

@pythonicrubyist
Last active December 29, 2015 00:59
Show Gist options
  • Save pythonicrubyist/7589351 to your computer and use it in GitHub Desktop.
Save pythonicrubyist/7589351 to your computer and use it in GitHub Desktop.
Converting Ubuntu 12.04 LTS or LInux Mint 13 into a Python Developer’s Environment
sudo apt-get install python-pip
sudo apt-get install python-setuptools
sudo apt-get install python-dev
sudo apt-get install build-essential
sudo pip install virtualenv
sudo pip install virtualenvwrapper
sudo echo 'export WORKON_HOME=$HOME/.virtualenvs' >> ~/.bashrc
sudo echo 'source /usr/local/bin/virtualenvwrapper.sh' >> ~/.bashrc
sudo echo 'export PIP_VIRTUALENV_BASE=$WORKON_HOME' >> ~/.bashrc
source ~/.bashrc
# Useful Commands
mkvirtualenv pyenv # Create a new virtual environment called pyenv
workon pyenv # Work on the pyenv virtual environment
lsvirtualenv # List all of the environments.
cdvirtualenv # Navigate into the directory of the currently activated virtual environment.
cdsitepackages # Navigate into the site-packages directory.
lssitepackages # Shows contents of site-packages directory.
deactivate # Deactivate currently activated virtual environment.
rmvirtualenv pyenv # Remove the virtual environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment