Pros and cons of Python sources?

Cameron Simpson cs at cskk.id.au
Sat Nov 25 21:18:18 EST 2017


On 25Nov2017 08:34, rusi <rustompmody at gmail.com> wrote:
>On Saturday, November 25, 2017 at 9:45:07 PM UTC+5:30, Michael Torrie wrote:
>> The problem with mixing repository-installed packages with pip-installed
>> packages is that there's always a chance a Debian update will overwrite
>> a pip package, possibly with an older version.  Or a pip-installed
>> package might bring in a new version that's not compatible with some
>> debian-installed package, breaking something.
>
>On (recent?) debian/ubuntu pip seems to use the 'user-scheme'
>which means pip runs without sudo and installs in ~/.local/lib
>So I dont believe literal overwriting would occur

Though the point should be made that one should run pip as oneself, and try to 
avoid doing it as the root user (including avoiding sudo). Many UNIX/Linux/etc 
users believe "installs" should be done as root, and in this case that is 
easily avoided, with all its potential for damage to the vendor supplied 
environment.

Cheers,
Cameron Simpson <cs at cskk.id.au> (formerly cs at zip.com.au)



More information about the Python-list mailing list