Skip to content

Commit 82a77d3

Browse files
NicholasKobaldncoghlan
authored andcommitted
[2.7] bpo-30964: Mention ensurepip in package installation docs (GH-2795)
Adds a new 'Pip not installed' section that covers running `ensurepip` manually, and also references the relevant section of the Python Packaging User Guide. (cherry picked from commit b3527bf)
1 parent 80ebc43 commit 82a77d3

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Doc/installing/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,17 @@ On such systems, it is often better to use a virtual environment or a
193193
per-user installation when installing packages with ``pip``.
194194

195195

196+
Pip not installed
197+
-----------------
198+
199+
It is possible that ``pip`` does not get installed by default. One potential fix is::
200+
201+
python -m ensurepip --default-pip
202+
203+
There are also additional resources for `installing pip.
204+
<https://packaging.python.org/tutorials/installing-packages/#install-pip-setuptools-and-wheel>`__
205+
206+
196207
Installing binary extensions
197208
----------------------------
198209

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,7 @@ Kim Knapp
739739
Lenny Kneler
740740
Pat Knight
741741
Jeff Knupp
742+
Nicholas Kobald
742743
Kubilay Kocak
743744
Greg Kochanski
744745
Manvisha Kodali

0 commit comments

Comments
 (0)