Skip to content

Instantly share code, notes, and snippets.

@zahna
Last active May 25, 2022 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zahna/b82b381bda3f195ff10e242639f3629b to your computer and use it in GitHub Desktop.
Save zahna/b82b381bda3f195ff10e242639f3629b to your computer and use it in GitHub Desktop.
cd $HOME
git clone git@github.com:pyenv/pyenv.git .pyenv
In your .profile, add:
# Initialize pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH"
Then:
. .profile
pyenv versions
pyenv install -l
pyenv install <version>
pyenv global <version>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment