> On Aug 7, 2018, at 11:43 AM, Chris Barker - NOAA Federal via Distutils-SIG 
> <distutils-sig@python.org> wrote:
> 
>> IIRC, ensurepip by design doesn't go to the internet , so it will only
>> ever upgrade to the version bundled with Python
> 
> Now I’m really confused — if pip is already bundled with Python, then
> what is ensurepip for ?!?!

Ensurepip is the mechanism that Python uses to bundle pip with Python. We 
didn’t add pip to the stdlib, we added ensurepip to the stdlib. In 3.x the 
makefiles and macOS/Windows installers will automatically run ensurepip 
(however in both cases there are flags to disable running ensurepip— but it 
defaults to On in 3.x). Ensurepip is also the mechanism that the venv module 
uses to install pip into a fresh, brand new virtual environment.

> 
> Or really, the question at hand: should a user starting from scratch
> with a python.org install of 3.7 run ensurepip?
> 
> Or can they just go straight to:
> 
> Python3 -m pip install —upgrade pip
> 

The intention behind ensurepip was that they could just go straight to 
``python3 -m pip install -U pip`` because the ensurepip was implicit when they 
installed Python. However some downstream distributors have mucked around with 
ensurepip in one way or another (ranging from not running it by default, to out 
right disabling it).
--
Distutils-SIG mailing list -- distutils-sig@python.org
To unsubscribe send an email to distutils-sig-le...@python.org
https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/mm3/archives/list/distutils-sig@python.org/message/6BVBYYQ2FBTK7RZL5OZJH2OWRQJQ3DOP/

Reply via email to