[Python-ideas] High time for a builtin function to manage packages (simply)?

Matthias Bussonnier bussonniermatthias at gmail.com
Sat Sep 5 15:22:02 CEST 2015

I do have this package[1]

That allow you to do `pip install <....>` from within an IPython
session and will call the
pip of the current python by importing pip instead of calling a subprocess.

One of the things I would like is for that to actually wrap
pip on python.org-installed python, and conda on conda-installed python.

So if such a proposal is integrating into Python, it would be nice to have hooks
that allow to "hide" which package manager is used under the hood.

[1]: https://pypi.python.org/pypi/pip_magic

On Sat, Sep 5, 2015 at 10:30 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:
> On 5 September 2015 at 17:08, Stephen J. Turnbull <stephen at xemacs.org> wrote:
>> Steven D'Aprano writes:
>>  > You say "of course", but did you actually look at the python-list
>>  > archives? If you do, you will see posts like these two within the last
>>  > 24 hours:
>> So let's fix it, already![1]  Now that we have a blessed package
>> management module, why not have a builtin that handles the simple
>> cases?
> Running "python -m pip" instead of "pip" already avoids many of the
> issues with PATH configuration, which is one of the reasons why that's
> what I recommend in the main Python docs at
> https://docs.python.org/3/installing/ &
> https://docs.python.org/2/installing/
> Unfortunately, I've yet to convince the rest of PyPA (let alone the
> community at large) that telling people to call "pip" directly is *bad
> advice* (as it breaks in too many cases that beginners are going to
> encounter), so it would be helpful if folks helping beginners on
> python-list and python-tutor could provide feedback supporting that
> perspective by filing an issue against
> https://github.com/pypa/python-packaging-user-guide
> Cheers,
> Nick.
> --
> Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/

More information about the Python-ideas mailing list