Installing the latest version of Python on Mac OS Catalina and overriding the old default pre-installed version
May 29th, 2020
- Link to Installing the latest version of Python on Mac OS Catalina and overriding the old default pre-installed version podcast on anchorfm
I finally did it. I successfully installed
Homebrew on my Mac laptop with
OS Catalina installed.
For those of you that still might be trying to figure out how to do this, I will walk you through.
The reason why I was eager to make sure that I had the latest version
installed was because I am working on publishing (open-source)
Read The Docs, and I need to have
Python installed in order to be able to install the programs
2.7.17 version of
Python was retired this past
January 2020. I had tried back then to replace it with
but was unsuccessful at the time. The following is what I did today:
First I updated
Homebrew. Yes, I used
Homebrew to (re)install
Python. It’s really easy. It’s just a matter of putting the pieces of the
puzzle together correctly!
I ran the
Homebrew. Then I ran the
brew install python
Python. Then I ran
To see which version of
Mac laptop was recognizing. It
still recognized only
Python 2.7.17. So I ran the following
brew info python
It told me the
path to my newly installed
Python 3.7.7. I had to
Python in order for my
Mac to recognize the
newly installed version. This is what the command
brew info python returned to
me in Terminal:
Python has been installed as /usr/local/bin/python3 Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to `python3`, `python3-config`, `pip3` etc., respectively, have been installed into /usr/local/opt/python/libexec/bin
So I had to add the following at the bottom of my
to update the
path to my newly installed version of
Then I made sure to quit
Terminal and go back in so that the
would actually be updated in a new
Then I checked what
Python was recognized now with
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
you simply execute the following
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 a transcript in the form of a post on interglobalmedianetwork.com for your hearing and reading pleasure. Bye for now!
Created by Maria D. Campbell who lives and works in New York City building and teaching useful things. You should follow her on Twitter.