Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ensurepip

1,540 views
Skip to first unread message

Steven D'Aprano

unread,
Jun 14, 2017, 12:25:33 AM6/14/17
to
ensurepip is added in Python 3.4:

https://docs.python.org/3/library/ensurepip.html


But:

root@runes:~# python3.4 -m ensurepip
/usr/bin/python3.4: No module named ensurepip



Any clues on what is going on or how to diagnose this?




--
Steve

Pavol Lisy

unread,
Jun 14, 2017, 1:00:27 AM6/14/17
to
$ python3 -m ensurepip
/usr/bin/python3: No module named ensurepip

But maybe this help to understand:

$ python -m ensurepip
ensurepip is disabled in Debian/Ubuntu for the system python.

Python modules For the system python are usually handled by dpkg and apt-get.

apt-get install python-<module name>

Install the python-pip package to use pip itself. Using pip together
with the system python might have unexpected results for any system installed
module, so use it on your own risk, or make sure to only use it in virtual
environments.
> --
> https://mail.python.org/mailman/listinfo/python-list
>

Steven D'Aprano

unread,
Jun 15, 2017, 12:56:04 AM6/15/17
to
On Wed, 14 Jun 2017 07:00:13 +0200, Pavol Lisy wrote:

> $ python3 -m ensurepip /usr/bin/python3: No module named ensurepip
>
> But maybe this help to understand:
>
> $ python -m ensurepip
> ensurepip is disabled in Debian/Ubuntu for the system python.


Ah, thanks!

I don't get that error message, possibly because I'm running Python 3
which isn't the system python but was installed by apt-get.




--
Steve
0 new messages