Skip to main content


I'm setting up a new M2 MacBook Pro, and it's been smooth sailing so far... until I tried to run "pip install lxml" and ran into some hairy error messages

The solution was to switch to a virtual environment created using a version of Python installed using Homebrew (I had accidentally been using the /usr/bin/python3 Python 3.9.6 that came with the system) - then everything worked fine

Wrote a quick TIL for the next person who gets stuck on this: til.simonwillison.net/python/l…

in reply to Simon Willison

#Python, #Ruby, #Perl, and other #scripting runtimes have been deprecated since #macOS #Catalina 10.15 in 2019: developer.apple.com/documentat…

#PHP was removed entirely in #Monterey 12.0 in 2021: techgenyz.com/2021/06/18/macos…

#Python 2.7 was removed in Monterey 12.3 in 2022: developer.apple.com/documentat…

Plan accordingly for the rest to go without much warning.

in reply to Mark Gardner

@mjgardner any idea why it has Python 3.9 installed? I had expected that it wouldn't have Python at all, hence my confusion when it turned out to be there (I didn't think to check for it before running "brew install python")
in reply to Simon Willison

I don’t have any inside knowledge, but at minimum #Apple would have to remove any other parts of #macOS that rely on it and make sure their apps and tools (including #Xcode) bundle their own rather than relying on it preinstalled by the OS.
in reply to Mark Gardner

@mjgardner I don't miss the bundled version of PHP, though; it just was a mess if you wanted to code PHP.

I can't remember when it was introduced but I guess it was a leftover since OS X Server was merged into the standard versions. @simon

in reply to Christian ♭- har flyttat till

@christian And #Python 2.7 was released in what, 2009? It was supposed to EOL in 2015 but there was just too much unported code out there. legacy.python.org/dev/peps/pep…

Imagine if #RakuLang had gone with its original plan to be #Perl6, and we had to wait for sufficient #Perl5 code to be ported before sunsetting the latter. (Never mind how that was rendered impossible when the community split.)

in reply to Mark Gardner

@mjgardner @christian
Why are you dragging Raku into this argument?

I could go on with a lot of "what-ifs" going back to the sister language fiasco. But I won't.

in reply to Elizabeth Mattijsen

@lizmat @christian It’s not an argument. We were talking about the deprecation of scripting runtimes in #macOS. I know it’s a sore spot and I’m sorry.