switching versions of python code example
Example 1: switching versions of python
# Check your python version
python --version
Python 3.9.0
# Check the python installation list
pyenv install --list
[Whole list available for you, pick yours]
pyenv install 3.9.1
pyenv global 3.9.1
python --version
Python 3.9.1
Example 2: transition from python 2 to 3 terminal
alias python="python3"