Error Knowledge Base PIP WINDOWS_NOT_RECOGNIZED

'pip' is not recognized as an internal or external command, operable program or batch file.

Windows cannot find the pip command because Python or its Scripts directory is missing from PATH, or pip was not installed correctly.

What This Error Means

Windows cannot find the pip command because Python or its Scripts directory is missing from PATH, or pip was not installed correctly.

How to Fix It

Use the Windows Python launcher:py -m pip ... (recommended).

If you need pip directly, add the correct ...\PythonXX\Scripts\ directory to PATH (or use the venv's Scripts\).

If pip is missing, reinstall Python and ensure the "pip" component is enabled, or use py -m ensurepip --upgrade where 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 --version and 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

Examples

'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's Scripts\ directory.

If that Scripts\ directory is not on PATH (or you intended to use a different Python), pip will not be found.

Prevention Tips

Use py -m pip on Windows instead of calling pip.exe directly.

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.

Need help or found a mistake? Contact RepoFlow support for questions.

Join our mailing list