Using Python on a Macintosh¶ Author. Bob Savage Python on a Macintosh running Mac OS X is in principle very similar to Python on any other Unix platform, but there are a number of additional features such as the IDE and the Package Manager that are worth pointing out. Python 3.7.11 June 28, 2021 Download Release Notes; Python 3.6.14 June 28, 2021 Download Release Notes; Python 3.9.5 May 3, 2021 Download Release Notes; Python 3.8.10 May 3, 2021 Download Release Notes; Python 3.9.4 April 4, 2021 Download Release Notes; Python 3.8.9 April 2, 2021 Download Release Notes; Python 3.9.2 Feb. 19, 2021 Download.
I'm still working on getting pyenv
in my bloodstream. It seems like totally the right tool for having different versions of Python available on macOS that don't suddenly break when you run brew upgrade
periodically. But every thing I tried failed with an error similar to this:
I read through the Troubleshooting FAQ and the 'Common build problems' documentation. xcode
was up to date and I had all the related brew
packages upgraded. Nothing seemed to work.
Until I saw this comment on an open pyenv
issue: 'Unable to install any Python version on MacOS'
All I had to do was replace the 10.14
for 10.15
and now it finally worked here on Catalina 10.15. So, the magical line was this:
Hopefully, by blogging about it you'll find this from Googling and I'll remember the next time I need it because it did eat 2 hours of precious evening coding time.
Related posts
Mac Catalina Python3 Default
- Previous:
- redirect-chain - Getting a comfortable insight input URL redirects history14 February 2020
- Next:
- How to install Node 12 on Ubuntu (Eoan Ermine) 19.1008 April 2020
- Related by category:
- How much faster is Redis at storing a blob of JSON compared to PostgreSQL?28 September 2019Python
- Best practice with retries with requests19 April 2017Python
- Fastest way to find out if a file exists in S3 (with boto3)16 June 2017Python
- Interesting float/int casting in Python25 April 2006Python
- Fastest way to unzip a zip file in Python31 January 2018Python
Catalina Python 32-bit
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.
I finally did it. I successfully installed Python
version 3.7.7
via Homebrew
on my Maclaptop 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) 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.
Catalina Python3 インストール
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
:
Catalina Python 3 Tutorial
See all the steps in the blog post here and podcast here.