pyenv on RHEL/CentOS 7

git clone /home/pyenv
git clone /home/pyenv/plugins/pyenv-virtualenv

vi ~/.bashrc

alias ...
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

Leave comments


Copyright(c) 2017 -
By using this website, you signify your acceptance of Terms and Conditions and Privacy Policy
All rights reserved