]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Adds docs to help with troubleshooting pip installs. (GH-133692)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 8 May 2025 18:35:57 +0000 (20:35 +0200)
committerGitHub <noreply@github.com>
Thu, 8 May 2025 18:35:57 +0000 (18:35 +0000)
(cherry picked from commit dd670fa7ca1db79d6daaac807ac924aa547257d0)

Co-authored-by: Steve Dower <steve.dower@python.org>
Doc/using/windows.rst

index 74d6db5d7d1a98b6d4026a118a5f5d38a1a5c8bb..c084392ca66d55df7986c18c6d6506ce735a7667 100644 (file)
@@ -95,6 +95,9 @@ as ``python3.14.exe``) to be available. The directory will be
 administrator. Click Start and search for "Edit environment variables for your
 account" for the system settings page to add the path.
 
+Each Python runtime you install will have its own directory for scripts. These
+also need to be added to :envvar:`PATH` if you want to use them.
+
 The Python install manager will be automatically updated to new releases. This
 does not affect any installs of Python runtimes. Uninstalling the Python install
 manager does not uninstall any Python runtimes.
@@ -713,6 +716,16 @@ default).
    your ``pythonw.exe`` and ``pyw.exe`` aliases are consistent with your
    others.
    "
+   "``pip`` gives me a ""command not found"" error when I type it in my
+   terminal.","Have you activated a virtual environment? Run the
+   ``.venv\Scripts\activate`` script in your terminal to activate.
+   "
+   "","The package may be available but missing the generated executable.
+   We recommend using the ``python -m pip`` command instead, or alternatively
+   the ``python -m pip install --force pip`` command will recreate the
+   executables and show you the path to add to :envvar:`PATH`. These scripts are
+   separated for each runtime, and so you may need to add multiple paths.
+   "
 
 
 .. _windows-embeddable: