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…
Installing lxml for Python on an M1/M2 Mac
I ran into this error while trying to run `pip install lxml` on an M2 Mac: ``` % pip install lxml Collecting lxml Using cached lxml-4.9.2.tar.gz (3.7 MB) Preparing metadata (setup.py) ... done Butil.simonwillison.net
Mark Gardner
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.
macOS 12 Monterey update will no longer have built-in PHP
Bipasha Mandal (Techgenyz)Simon Willison
in reply to Mark Gardner • • •Mark Gardner
in reply to Simon Willison • • •Christian ♭- har flyttat till
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
Mark Gardner
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.)
PEP 373 -- Python 2.7 Release Schedule
legacy.python.orgElizabeth Mattijsen
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.
Mark Gardner
in reply to Elizabeth Mattijsen • • •Elizabeth Mattijsen
in reply to Mark Gardner • • •@mjgardner
*