pyenv
is a python version manager. It allows you to install, activate, and set a system default for python versions like python 2.7, python 3.9, etc.
- Install
pyenv
:
curl https://pyenv.run | bash
- Add the following to your
~/.bashrc
or~/.zshrc
eval "$(pyenv init -)"