Skip to content

Instantly share code, notes, and snippets.

@oldcai
Last active August 29, 2015 14:12
Show Gist options
  • Save oldcai/1c13291eb4e81f0c4aa8 to your computer and use it in GitHub Desktop.
Save oldcai/1c13291eb4e81f0c4aa8 to your computer and use it in GitHub Desktop.
python env ubuntu init
sudo apt-get install -y libsqlite3-dev libbz2-dev zsh git-core curl libtiff4-dev libjpeg8-dev zlib1g-dev \
libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk
curl -L http://install.ohmyz.sh | sh
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
pyenv update
pyenv install 2.7.9
pyenv global 2.7.9
cat >> ~/.zshrc <<END
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
export WORKON_HOME="$HOME/.pyenv/versions"
source $HOME/.pyenv/versions/2.7.9/bin/virtualenvwrapper.sh
END
$HOME/.pyenv/versions/2.7.9/bin/pip install virtualenv virtualenvwrapper
chsh -s `which zsh`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment