←back to thread

129 points NeutralForest | 4 comments | | HN request time: 0.28s | source
1. h1fra ◴[] No.44454991[source]
I tried installing a Python project last week after years of avoiding it like the plague. brew install didn't work, use python3 not python, no pip pre-installed, ensurepip is crashing, you need to run sudo commands to fix this, after 1hour of struggle, repo didn't work anyway. how do people work like this?
replies(3): >>44455001 #>>44455117 #>>44460108 #
2. makeworld ◴[] No.44455001[source]
They use uv.
3. NeutralForest ◴[] No.44455117[source]
You can just use uv now, that's the whole point, it will let you install any recent version of python and you can easily handle it from there. It'll also handle dependencies and one-off scripts for which you don't want to create a whole project/venv.

By rule, you should never meddle with the globally installed python because so many packages will try to look for the system installed Python and use it, better let your package manager handle it.

4. acdha ◴[] No.44460108[source]
> how do people work like this?

They don’t. That’s a sign that the local system is severely broken, and should be rebuilt to be stable. uv will still work in that case, but you’re going to constantly hit other points of friction on a mismanaged system which will waste time.