Python 3 Macos Catalina

Catalina

For Python 3.7 enter the following: bash / Downloads / Anaconda3-2020.02-MacOSX-x8664. If you are on macOS Catalina, the new default shell is zsh. I recently upgraded to macOS Catalina and it seems to come with Python 3.7.3. All of my packages have come from the PIP installed with Python 3.7.3. I have installed Python 3.7.7 (the newest vers.

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:

  1. MacOS Catalina sort-of includes Python 3. Once you have installed the 'command line tools' for Catalina using the following terminal command: python3 will run Python 3.7.3:% which python3 /usr/bin/python3% python3 Python 3.7.3 (default, Apr 7 2020, 14:06:47) Clang 11.0.3 (clang-1103.0.32.59) on darwin Type 'help', 'copyright', 'credits'.
  2. 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.
  3. Python 3 in macOS Catalina: Fixing the abort trap. At some point in the beta program of macOS Catalina Homebrew ’s python 3 broke and only ended up showing an “Abort trap: 6” for every command that involved using it. This included pip3 and other tools that were previously downloaded and worked as expected.

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.

Python

Until I saw this comment on an open pyenv issue: 'Unable to install any Python version on MacOS'

Catalina

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.

Python 3 Macos Catalina

Related posts

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

Python 3 Macos Catalina Update

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