[Distutils] Installing packages using pip

Chris Barker chris.barker at noaa.gov
Fri Nov 13 15:27:48 EST 2015


On Fri, Nov 13, 2015 at 12:09 PM, Nathaniel Smith <njs at pobox.com> wrote:

> On Nov 13, 2015 12:00 PM, "Alexander Walters" <tritium-list at sdamon.com>
> wrote:
> >
> > import pip
> > pip.install(PACKAGESPEC)
> >
> > something like that?
>
> This would be extremely handy if it could be made to work reliably... But
> I'm skeptical about whether it can be made to work reliably. Consider all
> the fun things that could happen once you start upgrading packages while
> python is running, and might e.g. have half of an upgraded package already
> loaded into memory. It's like the reloading problem but even more so.
>
indeed -- does seem risky.

also, if were are in fantasy land, and want to be really newbie friendly, a
new built in:

pip.install(PACKAGESPEC)

with no import required....

-CHB


-- 

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20151113/1fbb9069/attachment.html>


More information about the Distutils-SIG mailing list