Skip to content

Instantly share code, notes, and snippets.

@jimorsm
Forked from bylatt/pyenv.sh
Last active November 15, 2018 21:57
Show Gist options
  • Save jimorsm/ecf2485989762ca2d2e8fec70e2e7c7f to your computer and use it in GitHub Desktop.
Save jimorsm/ecf2485989762ca2d2e8fec70e2e7c7f to your computer and use it in GitHub Desktop.
install python3.6.0 on centos 7
# install python 2.7.10 with pyenv on centos 7
yum install -y gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel
git clone git://github.com/yyuu/pyenv.git ~/.pyenv
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> .bashrc
echo 'eval "$(pyenv init -)"' >> .bashrc
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