[SciPy-User] Opportunity to contribute: 'pip upgrade'

Neal Becker ndbecker2 at gmail.com
Mon Oct 19 07:58:32 EDT 2015


Nathaniel Smith wrote:

> On Sun, Oct 18, 2015 at 11:27 AM, Jouni K. Seppänen <jks at iki.fi> wrote:
>> Nathaniel Smith <njs at pobox.com> writes:
>>
>>> basically the idea would be to add a 'pip upgrade' command that works
>>> the way you'd expect (only upgrades the named package, plus whatever
>>> other packages are minimally required in order to satisfy its new
>>> dependencies -- basically the equivalent of 'pip install foo=<latest
>>> version>')
>>
>> I submitted a patch that attempts to do this:
>> https://github.com/pypa/pip/pull/3194
> 
> Awesome!
> 
> -n
> 

Perhaps related,
I am running linux/fedora.  My vendor (Fedora) provides may python packages, 
but they aren't always the latest.  I find the most convenient approach is 
to use:
pip install foo --user

But in many cases, this won't work correctly.  I often find that although I 
have the latest numpy in my local --user, pip is confused about the older 
one install into the standard sys location.  It attempts to build another 
copy of numpy (for example), and eventually fails on trying to remove the 
system copy (pip running un-privileged).

This has been a big annoyance for a long time.




More information about the SciPy-User mailing list