jimorsm
2/7/2017 - 1:40 AM

install python3.6.0 on centos 7

install python3.6.0 on centos 7

#!/bin/sh

# install pyenv on centos 7

yum install -y  gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel

curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> .zshrc
echo 'eval "$(pyenv init -)"' >> .zshrc
echo 'eval "$(pyenv virtualenv-init -)"' >> .zshrc
exec $SHELL - l

pyenv install 3.6.0
pyenv global 3.6.0
pyenv rehash