git clone https://github.com/yyuu/pyenv.git /home/pyenv
git clone https://github.com/yyuu/pyenv-virtualenv.git /home/pyenv/plugins/pyenv-virtualenv

vi ~/.bashrc

alias ...
##
#pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
##
source ...

source ~/.bashrc

yum install readline readline-devel readline-static -y
yum install openssl openssl-devel openssl-static -y
yum install sqlite-devel -y
yum install bzip2-devel bzip2-libs -y

cd /home/pyenv/versions
pyenv versions
pyenv install 2.7.13
pyenv versions
pyenv rehash
pyenv virtualenv 2.7.13 <vdir>
pyenv virtualenvs

#pyenv global, pyenv local, pyenv shell

cd <vdir>
pyenv activate
pyenv deactivate