Skip to content

Instantly share code, notes, and snippets.

@swnim
Forked from ysaotome/install_pyenv.sh
Last active July 25, 2017 05:31
Show Gist options
  • Save swnim/c24dae8d0d564d6317f2bf687bb57d58 to your computer and use it in GitHub Desktop.
Save swnim/c24dae8d0d564d6317f2bf687bb57d58 to your computer and use it in GitHub Desktop.
pyenv install for CentOS 6.5 x86_64
#!/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 3.6.1
pyenv versions
pyenv shell 3.6.1
pyenv global 3.6.1
pyenv versions
pyenv rehash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment