-
-
Save Isopach/3a0c0f6923f17384f3c5dcead2eaddd6 to your computer and use it in GitHub Desktop.
pyenv install for CentOS 7+ x86_64 without root
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# pyenv install for CentOS 7+ x86_64 | |
git clone https://github.com/pyenv/pyenv.git ~/.pyenv | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
cat << _PYENVCONF_ >> ~/.zshrc | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
_PYENVCONF_ | |
pyenv install 3.7.2 | |
pyenv versions | |
pyenv shell 3.7.2 | |
pyenv global 3.7.2 | |
pyenv versions | |
pyenv rehash | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment