Maria Campbell provides a post on installing the latest version of Python on Mac OS Catalina and overriding the old default pre-installed version. And it even uses Homebrew and not some gnarly steps.
- Install Brew On Mac Catalina
- Cannot Install Homebrew On Catalina
- Install Homebrew On Catalina
- Install Homebrew On Macos Catalina
- Install Homebrew On Mac Catalina
I finally did it. I successfully installed Python
version 3.7.7
via Homebrew
on my Maclaptop with OS Catalina
installed.
I recently upgrade my Mac OS Sierra to Catalina and realize that the mongoDB was not usable in Catalina, somehow `brew update` and `brew upgrade` did not update the mongoDB to be able to run on Catalina. Below is a guide to fix it. The problem is related to the latest major macOS release, Catalina, and in this article, I’ll share my solution. Installing Homebrew. First, we need to install Homebrew. Homebrew allows us to install and compile software packages easily from source. Homebrew comes with a very simple install script. When it asks you to install XCode CommandLine Tools, say yes. Open Terminal and run the following command. Homebrew installs the apps you need that Apple didn’t include in their base operating system or app store such as cutting edge version of gnu/bash. See how to install Homebrew on macOS to use the brew package manager. Homebrew user can type the following brew command to install the latest version of bash on Catalina: brew install bash. Installing Python on Mac OS X Catalina Posted by bernard 11 November 2020 11 November 2020 (This is a reminder to myself, and maybe a help for someone else who might be in the same situation as me. Homebrew is an open-source package manager for macOS that offers an easy way to install software and tolls through the command line. If you are a coder, developer, Terminal lover, or more tech-savvy than an average Mac user, you can use Homebrew to simplify software installation on your Mac.
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) teaching-related documentation
on Read The Docs
, and I need to have Python
installed in order to be able to install the programs necessary to publish
there.
The default 2.7.17
version of Python
was retired this past January 2020
. I had tried back then to replace it with Python 3+
, but was unsuccessful at the time.
They key appears to be also adding the following at the bottom of the .zshrc
file to update the path
to the newly installed version of Python
via Homebrew
:
See all the steps in the blog post here and podcast here.
The easiest way to install a number of Unix style applications and open source software onto macOS Big Sur, Catalina, Mojave and earlier Sierra OS versions is via a package manager, unfortunately, macOS Big Sur doesn’t come with one, but fortunately, some good folks care, they come in the form of Homebrew.
The install of Homebrew also works on macOS Catalina, macOS Mojave, (High)Sierra, El Capitan, and Yosemite, so macOS 10.10 – 10.14
Install Brew On Mac Catalina
Homebrew isn’t the only option, also available is MacPorts and Fink but Homebrew is the newest and most popular of the trio.
Install Homebrew
Cannot Install Homebrew On Catalina
To download install Homebrew run the install script on the command line as below and let the script do its thing:
If you don’t have Apples Xcode Command Line Tools installed it will alert you to that it will install it and carry on with the Homebrew installation and download the Command Line Tools you will need to enter your admin password at some point.
Then Homebrew is installed.
After this Homebrew is installed and ready to install other apps.
To get started run brew help can give some command example usage.
To check for any issues with the Homebrew install run:
One issue that typically comes up is an outdated or missing version of Xcode.
For the latest macOS, brew doctor will warn that the Homebrew install won’t be 100% if Xcode is not up to date, so update Xcode from the App Store.
To search for an application:
To install
To list all apps installed by Homebrew
To remove an installed application
To update Homebrew itself
To see what packages are out of date but not to upgrade them
To see what upgrade packages all or singular
Install Homebrew On Catalina
To hold a package at a certain version
To release a package from a certain version
To see what else you can do
Where does Homebrew install stuff …. in the Cellar
Install Homebrew On Macos Catalina
Where the brew lives.
You can see your Homebrew configuration by running
The output should be similar to …
All installations via Homebrew are filed independently in the filing system in /usr/local/Cellar and linked into /usr/local/bin which is a directory which allows you to run these commands and apps as if part of the regular operating system.
Install Homebrew On Mac Catalina
This directory is also out of the SIP bounds so there should be no authentication macOS error dialog boxes.
Remove Home-brew and all packages
To remove the Home-brew installation and all packages it has installed..
HomeBrew is a great package manager just start installing some apps and explore.!