

If you want to update python then don’t change the default one on macOS instead download a newer one and use it with another terminal alias like python3. Similarly, you will have to use pip3 for managing python3 packages. The default python on macOS will rest in /usr/local/bin/python.
#Upgrade python for mac osx software
Now, any application or software which needs to use python3 will have to invoke it at path /usr/local/bin/python3 or with alias python3 in terminal. You’ll notice that python3 is updated or installed, as required.


In the above example, Python3 is using version 3.9.1, so let’s update it by using following procedure: Now that you know which version of python libraries you are using, all you’ve to find is the latest version. In most macOS versions, certain terminal apps and other supported software use Python2 with alias set as python. Note: It’s always wise to maintain two versions of Python on your macOS. We’ll need to update these versions separately to their latest counterparts. It’s worth checking, that the system which we are using for this tutorial has both versions of python installed, python2 (using alias python) as well as python3. Do check, if you’ve other versions of python installed, use the following command:
