How to fix How to fix 'pip: command not found' in Python in Python

PythonINTERMEDIATEMEDIUMUpdated Dec 7, 2025ยท 125 views

This error means pip is not installed or not in your system PATH. pip is the Python package manager and must be installed to manage packages.

Quick fix

Fixes How to fix 'pip: command not found' in Python

  1. Verify the root cause
  2. Apply the appropriate fix
  3. Retry the installation
python โ€” error
# How to fix 'pip: command not found' in Python

What this error means

pip is a command-line tool installed as part of Python or separately. When you type 'pip' in your terminal, the operating system searches your PATH directories for an executable named 'pip'. If pip is not installed or not in PATH, the command is not found.

Typical symptoms

  • Typing 'pip install' returns 'command not found'
  • Works with 'python -m pip' but not 'pip'
  • Error appears on fresh system or new virtual environment
  • Works on one Python installation but not another
  • pip3 works but pip does not
  • Terminal shows 'pip: command not found' or 'command not found: pip'
  • which pip returns nothing

Common causes

  1. Python installed without pip
  2. pip not in system PATH
  3. Using wrong Python installation
  4. Virtual environment not activated
  5. pip script not executable on Unix/Mac
  6. Using Python 2 (which used easy_install instead)
  7. Installing Python from source without including pip

How to fix this error

1Verify the root cause

Review the error message above and identify which cause applies to your situation. Run additional diagnostics if needed.

2Apply the appropriate fix

Follow the corresponding solution from the causes section above.

3Retry the installation

Once you've addressed the root cause, try running 'pip install' again.

Frequently asked questions

What does "How to fix 'pip: command not found' in Python" mean?
pip is a command-line tool installed as part of Python or separately. When you type 'pip' in your terminal, the operating system searches your PATH directories for an executable named 'pip'. If pip is not installed or not in PATH, the command is not found.
How do I fix "How to fix 'pip: command not found' in Python"?
This error means pip is not installed or not in your system PATH. pip is the Python package manager and must be installed to manage packages.
What causes "How to fix 'pip: command not found' in Python"?
Python installed without pip pip not in system PATH Using wrong Python installation
Is the "How to fix 'pip: command not found' in Python" error serious?
It is a medium-severity error โ€” more of a blocker than a risk. The steps above resolve it.

Official resources & further reading