On Sat, 17 Oct 2026 20:36:37 -0000 (UTC), Lawrence D’Oliveiro wrote:
>> ... so well that now some distros don't let you install libraries with
>> pip if you are not in a virtual environment.
>
> Do other languages get away with allowing you to override standard
> system libraries without breaking things?
I prefer venvs, particularly when using uv to set a Python version. For
example when tensorflow says Python 3.9-3.12 they don't mean 3.13, 3.14,
or 3.15.
One annoyance is the different site packages on the various distros. For
example on Fedora you can install python3-ruff as a site package with
dnf. On Ubuntu 26.04 you get 'Error: Unable to locate package python3-
ruff' and have to install it in a venv.
No big deal but it's easier to create the venv for the project just in
case.