Last active
November 10, 2020 16:29
-
-
Save bylatt/b0421d8af60e26d97372 to your computer and use it in GitHub Desktop.
Install python 2.7.10 with pyenv 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
# 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
Hello
I think it shoud be that way
echo 'export PATH=$PATH:"$HOME/.pyenv/bin"' >> .bashrc
AND NOT
echo 'export PATH="$HOME/.pyenv/bin:$PATH"' >> .bashrc
Regards