From 5efaa5f24ed5fb01fac5f4fb66cbf6c6aae38423 Mon Sep 17 00:00:00 2001 From: Silvana Morera Date: Sun, 16 Nov 2025 14:55:58 -0600 Subject: [PATCH] Move get-pip.py warning above instructions for safer install flow --- source/tutorials/installing-packages.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/tutorials/installing-packages.rst b/source/tutorials/installing-packages.rst index 3a9aa23bb..2791d2c39 100644 --- a/source/tutorials/installing-packages.rst +++ b/source/tutorials/installing-packages.rst @@ -133,6 +133,14 @@ standard library: If that still doesn't allow you to run ``python -m pip``: + .. warning:: + + Be cautious if you're using a Python install that's managed by your + operating system or another package manager. ``get-pip.py`` does not + coordinate with those tools, and may leave your system in an inconsistent + state. You can use ``python get-pip.py --prefix=/usr/local/`` to install + in ``/usr/local`` which is designed for locally-installed software. + * Securely Download `get-pip.py `_ [1]_ @@ -140,14 +148,6 @@ If that still doesn't allow you to run ``python -m pip``: Additionally, it will install :ref:`setuptools` and :ref:`wheel` if they're not installed already. - .. warning:: - - Be cautious if you're using a Python install that's managed by your - operating system or another package manager. get-pip.py does not - coordinate with those tools, and may leave your system in an - inconsistent state. You can use ``python get-pip.py --prefix=/usr/local/`` - to install in ``/usr/local`` which is designed for locally-installed - software. Ensure pip, setuptools, and wheel are up to date