Pyenv
Pyenv Installation
brew install pyenv
Then to make it work in zsh, add following code to ~/.zprofile
:
eval "$(pyenv init --path)"
or to ~/.zshrc
:
eval "$(pyenv init -)"
Managing multiple python versions.
To list all available versions to install:
pyenv install --list
To install selected version:
pyenv install -v <version>
To list all installed python versions:
pyenv versions
To uninstall selected version:
pyenv uninstall <version>
Switch Between Versions
To set given python version globally:
pyenv global <version>
Locally:
pyenv local <version>