Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
shell-recipe for pyenv install of Python 3.6.2 on CentOS / Redhat 6.7
# REF: https://github.com/pyenv/pyenv/blob/master/README.md
# ... building Python 3.6.2 on Bastion, "locally"
# yum install [Python3 build pre-reqs, on CentOS 6.7]
curl -L https://raw.githubusercontent.com/pyenv/pyenv-installer/master/bin/pyenv-installer | bash
tee -a $HOME/.bash_profile <<EOF
export PATH="\$HOME/.pyenv/bin:\$PATH"
eval "\$(pyenv init -)"
eval "\$(pyenv virtualenv-init -)"
EOF
# re-login!
pyenv install 3.6.2
# REF: https://github.com/pyenv/pyenv/blob/master/COMMANDS.md
pyenv commands
cd $HOME/py-capacity-openstack
pyenv local 3.6.2
pyenv virtualenv ostk-capacity
pyenv activate ostk-capacity
# pip install -r requirements.txt # openstack SDK et al
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.