Skip to main content
1 of 2

Try using pyenv. This library will help you switch between different versions of Python (in case you need to run Python 2.x for some reason, and in anticipation of Python 4.0 coming).

Install pyenv

brew install pyenv

Now use pyenv to Install Python or Update Your Python Version

pyenv install 3.9.2

pyenv install 4.0.0

Check here link for more info.