-
-
Save jimorsm/ecf2485989762ca2d2e8fec70e2e7c7f to your computer and use it in GitHub Desktop.
install python3.6.0 on centos 7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment