Skip to content

Commit 5efaa5f

Browse files
committed
Move get-pip.py warning above instructions for safer install flow
1 parent 5ab2bf4 commit 5efaa5f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

source/tutorials/installing-packages.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -133,21 +133,21 @@ standard library:
133133
134134
If that still doesn't allow you to run ``python -m pip``:
135135

136+
.. warning::
137+
138+
Be cautious if you're using a Python install that's managed by your
139+
operating system or another package manager. ``get-pip.py`` does not
140+
coordinate with those tools, and may leave your system in an inconsistent
141+
state. You can use ``python get-pip.py --prefix=/usr/local/`` to install
142+
in ``/usr/local`` which is designed for locally-installed software.
143+
136144
* Securely Download `get-pip.py
137145
<https://bootstrap.pypa.io/get-pip.py>`_ [1]_
138146

139147
* Run ``python get-pip.py``. [2]_ This will install or upgrade pip.
140148
Additionally, it will install :ref:`setuptools` and :ref:`wheel` if they're
141149
not installed already.
142150

143-
.. warning::
144-
145-
Be cautious if you're using a Python install that's managed by your
146-
operating system or another package manager. get-pip.py does not
147-
coordinate with those tools, and may leave your system in an
148-
inconsistent state. You can use ``python get-pip.py --prefix=/usr/local/``
149-
to install in ``/usr/local`` which is designed for locally-installed
150-
software.
151151

152152

153153
Ensure pip, setuptools, and wheel are up to date

0 commit comments

Comments
 (0)