How To Update Python Mac Terminal



  1. This article will serve as a complete tutorial on How to download and install Python latest version on macOS / Mac OS X. Like Linux, macOS also comes with Python pre-installed on the system. It might be Python version 2 or some similar outdated version. To update to the latest version, we will use the Homebrew Package manager.
  2. OK I was afraid to use the terminal, so I installed the python-3.7.2-macosx10.9 package downloaded from python.org Ran the certificate and shell profile scripts, everything seems fine. Now the 'which python3' has changed the path from 3.6 to the new 3.7.2.

How to Install the Updated Python 3 in Mac OS Perhaps the simplest way to install Python 3 is by using the Python package installer from python.org Go to Python.org downloads page here and download the latest Python installer package Run the Python installer package and install Python 3 onto the Mac.

May 29th, 2020

  • Link toInstalling the latest version of Python on Mac OS Catalina and overriding the old default pre-installed versionpodcast on anchorfm

I finally did it. I successfully installed Python version 3.7.7 viaHomebrew on my Maclaptop with OS Catalinainstalled.

For those of you that still might be trying to figure outhow todo this, I will walk you through.

Mac os upgrade python

The reason why I was eager to make sure that I had the latest versioninstalled was because I am working on publishing (open-source)teaching-relateddocumentation on Read The Docs, and I need to havePythoninstalled in order to be able to install the programsnecessary to publishthere.

The default2.7.17 version of Python was retired this pastJanuary 2020. I had tried back then to replace it with Python 3+,but was unsuccessful at the time. The following is what I did today:

First I updated Homebrew. Yes, I used Homebrew to (re)installPython. It’s really easy. It’s just a matter of putting the pieces of thepuzzle together correctly!

I ran the command

To updateHomebrew. Then I ran the command

To (re)install Python. Then I ran

To see which version of Python my Mac laptop was recognizing. Itstill recognized only Python 2.7.17. So I ran the followingcommand:

How To Update Python In Mac Terminal

It told me the path to my newly installedPython 3.7.7. I had tochange the path to Python in order for my Mac to recognize thenewly installed version. This is what the command brew info python returned tome in Terminal:

So I had to add the following at the bottom of my .zshrc fileto update the path to my newly installed version of Python viaHomebrew:

Terminal

Then I made sure to quitTerminal and go back in so that the pathwould actually be updated in a newTerminal windowinstance.

How

Then I checked what version of Python was recognized now with

Upgrade Python Mac Terminal

And this is what was returned:

Success! It’s as easy as that.

And BTW, if you don’t know how to access your .zshrc file in Catalina,you simply execute the following command:

How To Update Python Version On Mac Using Terminal

And your file will open in a new window. Then you can paste

At the bottom of the file.

I will be embedding this episode of Plugging in The Holes along with atranscript in the form of a post oninterglobalmedianetwork.com for yourhearing and reading pleasure. Bye for now!

Related Resources

Categorized under:osxpython3catalina

Created by Maria D. Campbell who lives and works in New York City building useful things.You should follow her on Twitter. She also has a developer blogmariadcampbell.comyou may want to check out!