Skip to content

Instantly share code, notes, and snippets.

@bylatt
Last active November 10, 2020 16:29
Show Gist options
  • Save bylatt/b0421d8af60e26d97372 to your computer and use it in GitHub Desktop.
Save bylatt/b0421d8af60e26d97372 to your computer and use it in GitHub Desktop.
Install python 2.7.10 with pyenv on centos 7
# 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
@abeslam
Copy link

abeslam commented Nov 10, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment