Skip to content

Instantly share code, notes, and snippets.

@bylatt
Last active June 15, 2018 12:31
Show Gist options
  • Select an option

  • Save bylatt/fb3e3e0a25dcd3e0c158 to your computer and use it in GitHub Desktop.

Select an option

Save bylatt/fb3e3e0a25dcd3e0c158 to your computer and use it in GitHub Desktop.
Install python 2.7.10 with pyenv on Ubuntu 14.04
# Install python 2.7.10 with pyenv on ubuntu 14.04
sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(pyenv init -)"' >> ~/.
exec $SHELL
pyenv install 2.7.10
pyenv global 2.7.10
pyenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment