Skip to content

Instantly share code, notes, and snippets.

@witt3rd
Last active September 7, 2021 13:29
Show Gist options
  • Save witt3rd/f01f1c236517d59003d824360a43c875 to your computer and use it in GitHub Desktop.
Save witt3rd/f01f1c236517d59003d824360a43c875 to your computer and use it in GitHub Desktop.
Python

Python

Setup

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
  • Update pyenv:
pyenv update
  • List available versions:
pyenv install ---list
  • Install a specific version:
pyenv install 3.9.7
  • Use a specific version globally:
pyenv global 3.9.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment