Skip to content

Instantly share code, notes, and snippets.

@saippuakauppias
Forked from nyumatova/install.sh
Last active September 30, 2015 00:48
Show Gist options
  • Save saippuakauppias/1695283 to your computer and use it in GitHub Desktop.
Save saippuakauppias/1695283 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 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