7 Feb 2020

How to set Python3 as a default python version on macOS?

Look where Python is installed.
ls -l /usr/local/bin/python*

Change the default python symlink to the version you want to use from above.
Note that, we only need to choose the one that ends with python3.*. Please avoid using the ones' that end with config or python3.*m or python3.*m-config.

ln -s -f /usr/local/bin/python3.7 /usr/local/bin/python

Close the current terminal session or keep it that way and instead open a new terminal window.

Run this:
python --version

No comments:

Post a Comment

Popular Posts