Last active
August 7, 2021 13:27
-
-
Save ysaotome/7956676 to your computer and use it in GitHub Desktop.
pyenv install for CentOS 6.5 x86_64
This file contains 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/zsh | |
# pyenv install for CentOS 6.5 x86_64 | |
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 | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
cat << _PYENVCONF_ >> ~/.zshrc | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
_PYENVCONF_ | |
pyenv install 2.7.6 | |
pyenv versions | |
pyenv shell 2.7.6 | |
pyenv global 2.7.6 | |
pyenv versions | |
pyenv rehash | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I had to install these additional packages using
yum
, as mentioned here, to be able to installpython 3.7.0
usingpyenv
onEMR
sudo yum -y install zlib
sudo yum -y install libffi-devel