Skip to content

Instantly share code, notes, and snippets.

@vubon
Created January 28, 2019 07:07
Show Gist options
  • Save vubon/36e65705a7bc5a4455b436135bab94ff to your computer and use it in GitHub Desktop.
Save vubon/36e65705a7bc5a4455b436135bab94ff to your computer and use it in GitHub Desktop.
CentOS 7 , Install Pyenv
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