Skip to content

Instantly share code, notes, and snippets.

@dperezrada
Created December 31, 2011 18:27
Show Gist options
  • Save dperezrada/1544876 to your computer and use it in GitHub Desktop.
Save dperezrada/1544876 to your computer and use it in GitHub Desktop.
Prepare python on Ubuntu
# Install python
sudo aptitude install python-setuptools
sudo easy_install pip
sudo pip install virtualenv
# Create a new enviroment
mkdir ~/envs
cd ~/envs
virtualenv --no-site-packages my_project
# Activate Enviroment
source ~/envs/my_project/bin/activate
# Deactivate Enviroment
deactivate
# If you want your enviroment to be automatly activated
echo "source ~/envs/my_project/bin/activate" >> ~/.profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment