What This Error Means
On Windows, cmd.exe/PowerShell can't find pip.exe on PATH (or you're using the wrong Python install).
How to Fix It
- Use the Windows Python launcher:
py -m pip ...(recommended). - If you need
pipdirectly, add the correct...\PythonXX\Scripts\directory to PATH (or use the venv'sScripts\). - If pip is missing, reinstall Python and ensure the "pip" component is enabled, or use
py -m ensurepip --upgradewhere available. - Prefer per-project virtual environments to avoid global PATH confusion.
Why It Happens
- Python was installed without pip (or pip was removed).
- You're using a Python install that isn't the one you think (multiple Python installs).
- The
Scripts\directory for that Python/venv isn't on PATH.
How to Verify
- Run
py -m pip --versionand confirm it succeeds. - Re-run your original install command using
py -m pip install ....
Manual Windows launcher checks
- Confirm which Python the launcher selects:
py -0p. - Check pip through the launcher:
py -m pip --version. - If using a virtual environment, ensure it's activated and then run:
python -m pip --version.
Common CLI Output
'pip' is not recognized as an internal or external command, operable program or batch file How pip is launched on Windows
- On Windows, pip is typically installed as a console script (for example
pip.exe) inside a Python install or virtual environment'sScripts\directory. - If that
Scripts\directory is not on PATH (or you intended to use a different Python),pipwill not be found.
Prevention Tips
- Use
py -m pipon Windows instead of callingpip.exedirectly. - Create and activate a venv per project (
py -m venv .venv) and install inside it. - Avoid manually editing PATH for multiple Python installs unless you standardize on one.
Where This Can Be Triggered
Not thrown by pip itself
This message is emitted by your shell / OS launcher (or by the Python interpreter) before pip runs, so there is no pip source file/line to link to.