# 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