Richard Kettlewell <inv...@invalid.invalid> writes:
> Cecil Westerhof <
Ce...@decebal.nl> writes:
>> I have been using pip as root for years to keep my python packages up
>> to date. For a while I have been getting (I think since I switched to
>> Debian 11) the following warning:
>> WARNING: Running pip as the 'root' user can result in broken
>> permissions and conflicting behaviour with the system package manager.
>> It is recommended to use a virtual environment instead:
>>
https://pip.pypa.io/warnings/venv
>>
>> As far as I can tell I have no problems with installing the latest
>> packages as root. (Except that sometimes I have to remove a system
>> package and install it manually, but that is also a long time ago.)
>> But is it potentially dangerous what I am doing?
>
> The answer’s in the message; it can cause a conflict with the system
> package manager.
>
> THat doesn’t necessarily mean files are overwritten, since the system
> package manager will normally install under /usr/lib while pip will put
> them under /usr/local/lib (unless you have a version that enables --user
> by default). However if there are multiple versions of a package
> installed, then it’s easy to see how something that depends on it may
> get the wrong version at runtime.
Not completely sure, otherwise I would not have asked. ;-) But