Need to switch between python versions often? Use pyenv.

Installing pyenv

# install pyenv
curl https://pyenv.run | bash

# check pyenv install location
which pyenv

Install another python version

# see a list of available python versions
pyenv install --list

# check installed python versions
pyenv versions

# installs python 3.7.5
pyenv install 3.7.5

Switch python versions

# use python 3.7.5 everywhere on your machine
pyenv global 3.7.5

# use python 3.7.5 in current directory
pyenv local 3.7.5

# use python 3.7.5 in current shell session
pyenv shell 3.7.5