Skip to content

Instantly share code, notes, and snippets.

@nyumatova
Created January 9, 2012 16:49
Show Gist options
  • Save nyumatova/1583821 to your computer and use it in GitHub Desktop.
Save nyumatova/1583821 to your computer and use it in GitHub Desktop.
Virtualenv
sudo apt-get -y install git
sudo apt-get -y install curl
sudo apt-get -y install postgresql
sudo apt-get -y install libpq-dev
sudo apt-get -y install python-dev
sudo apt-get -y install libjpeg8-dev
sudo apt-get -y install libfreetype6-dev
curl http://python-distribute.org/distribute_setup.py | sudo python
curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | sudo python
sudo pip install virtualenv
sudo pip install virtualenvwrapper
mkdir -p ~/.virtualenvs
mkdir -p ~/projects
echo "" >> ~/.bashrc
echo "export WORKON_HOME=\$HOME/.virtualenvs" >> ~/.bashrc
echo "export PROJECT_HOME=\$HOME/projects" >> ~/.bashrc
echo "export VIRTUALENVWRAPPER_LOG_DIR=\$WORKON_HOME" >> ~/.bashrc
echo "source \"/usr/local/bin/virtualenvwrapper.sh\"" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment