# git clone https://github.com/yyuu/pyenv ~/.pyenv
modify environment (add)
.zshrc
PATH=$PATH:$HOME/.pyenv/bin
eval "$(pyenv init -)"
check installed
# pyenv version
system (set by /root/.pyenv/version)
gcc
zlib-devel
readline-devel
openssl-devel
sqlite-devel
bzip2-devel
did not install pip
# curl -kL https://bootstrap.pypa.io/get-pip.py | python
# python -V
Python 2.6.6
# pyenv install --list
# pyenv install 2.7.12
# pyenv versions
* system (set by /root/.pyenv/version)
2.7.12
# pyenv global 2.7.12
# pyenv rehash
# python -V
Python 2.7.12
# pyenv versions
system
* 2.7.12 (set by /root/.pyenv/version)
Recommended Posts