News for hackers. Stuff that matters.
Re:Apple removes Python 2.7 in macOS 12.3 beta by saila on Friday January 28, 2022 @02:31PM (#30119252)
I use pipx for this. It isolates each tool in its own virtualenv. You might still have to install a specific Python version (although the latest 3.X works fine for me), but it takes some of the pain out of the process and makes sure you don't pollute your global/system install.

On a Mac, it could be as simple as (assuming you already use Homebrew):

    brew install python
    brew install pipx
    pipx ensurepath # adds ~/.local/bin to $PATH
    pipx install <tool>
    <tool>
Re:Apple removes Python 2.7 in macOS 12.3 beta by Too on Saturday January 29, 2022 @01:16AM (#30124204)
Pipx is really one of the best things that has happened to Python recently. Taking away all the headaches of manually managing venvs. They should integrate it into mainline imo.
Re:Apple removes Python 2.7 in macOS 12.3 beta by gullevek on Monday January 31, 2022 @02:53AM (#30145586)
That is all nice. And then python updates from 3.9.n to 3.9.n+1 and nothing works anymore.

brew sucks with python.

Re:Apple removes Python 2.7 in macOS 12.3 beta by saila on Monday January 31, 2022 @06:00PM (#30156018)
I've only run into issues like this when upgrading from Python 3.X to 3.Y, which is to be expected, and Homebrew lets you install a specific 3.X (e.g. brew install [email protected]) if you don't need/want be on the latest version.
Re:Apple removes Python 2.7 in macOS 12.3 beta by ldrndll on Friday January 28, 2022 @02:54PM (#30119522)
Thanks, I didn’t know about pipx. If it works as advertised that will be a huge improvement for me!
Re:Apple removes Python 2.7 in macOS 12.3 beta by oars on Friday January 28, 2022 @09:01PM (#30123026)
pipx looks fantastic, thanks for sharing.