3 ms·
Ah, the joys of sudo pip install If you are unexperienced, I recommend you stick with uv and set the env var: UV_MANAGED_PYTHON=true This will make uv not
by grim_io 11mo ago
Ah, the joys of
sudo pip install
If you are unexperienced, I recommend you stick with uv and set the env var: UV_MANAGED_PYTHON=true
This will make uv not consider system python, only the uv-managed python versions.
No more f-ing up the system python and juggling with multiple apt-installed python versions.
- zahlman 11mo agoI legitimately can't understand why people believe they have a use case for `sudo pip install`, or ever did. I've seen so much cargo-culting (thankfully, generally it's all old material) suggesting the use of sudo to fix issues with pip and it's basically always at least wrong and generally dangerous. In cases I've seen where it "worked" and a user install wouldn't, it's ultimately because the root user has different environment variables. (Also, apt-installing multiple Python versions can already mess things up, from the reports I've seen. Building from source and installing it at a custom location that won't mess things up is easy, however.)