Liste des Groupes | Revenir à col advocacy |
On 15 Feb 2025 22:03:36 GMT, Stéphane CARPENTIER <sc@fiat-linux.fr> wrote
in <67b10f38$0$28493$426a34cc@news.free.fr>:
>Le 15-02-2025, rbowman <bowman@montana.com> a écrit :>On 15 Feb 2025 11:27:36 GMT, Stéphane CARPENTIER wrote:
>Now, on some systems, like ubuntu, python is managed by the system, so>
it refuses to execute a "pip install". And if the library isn't provided
by ubuntu, you have to run "pip install" in a virtual environment to be
able to use a library designed not to be shared with the libraries of
the system.
I believe 'sudo pip install xxxxx' will work although I prefer to use
venvs. Installing to the system libs might be preferable for something
like ruff but I still do that in the venv.
I can't test it now, but I'm pretty sure it wouldn't work. The error
message was explicit. It didn't said "you don't have the authorisation".
It said something like "the libraries are managed by your distribution
and you should use the package manager of your distribution instead, run
sudo apt install". I'm sure there are ways to force "pip install" to run
anyway, but I strongly believe it would be a bad idea because I have no
idea about the side effects.
It also gives instructions on how to set up a venv, which (once I figured out
what that means), seems to work well.
Les messages affichés proviennent d'usenet.