Skip to content

Instantly share code, notes, and snippets.

@Isopach
Forked from ysaotome/install_pyenv.sh
Last active February 18, 2019 03:35
Show Gist options
  • Save Isopach/3a0c0f6923f17384f3c5dcead2eaddd6 to your computer and use it in GitHub Desktop.
Save Isopach/3a0c0f6923f17384f3c5dcead2eaddd6 to your computer and use it in GitHub Desktop.
pyenv install for CentOS 7+ x86_64 without root
#!/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