Skip to content

Instantly share code, notes, and snippets.

@biggers
Created September 26, 2017 17:46
Show Gist options
  • Save biggers/8a7fd8779d20688b884214136a3413e9 to your computer and use it in GitHub Desktop.
Save biggers/8a7fd8779d20688b884214136a3413e9 to your computer and use it in GitHub Desktop.
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