If you see 'pip install command not found', it means your system doesn't recognize pip as a command — usually because Python isn't installed, pip isn't installed with it, or your shell can't find it. The fix is straightforward: install or reinstall Python with pip included, then ensure your PATH is correct. Most modern Python installations include pip by default, but some systems (especially Linux) require manual setup. This guide walks you through verifying, installing, and configuring pip so you can install Python packages without error.
What You'll Need
- A computer running Windows, macOS, or Linux
- An internet connection to download Python
- Administrator or sudo access (required for system-wide installs)
- Access to a terminal or command prompt
Step-by-Step
- Open your terminal or command prompt. On Windows, search for 'cmd' or 'PowerShell'. On macOS, open 'Terminal' from Applications > Utilities. On Linux, open your preferred terminal (like GNOME Terminal or Konsole).
- Type
python --versionand press Enter. If you see a version like 'Python 3.11.4', Python is installed. If you see 'command not found' or 'is not recognized', skip to step 4. - Type
pip --versionand press Enter. If you see a version number and path, pip is installed and working. If you see 'command not found', proceed to the next step. - Download Python from the official site: https://www.python.org/downloads/. Do not use third-party installers or package managers unless you're certain they include pip.
- Run the installer. On Windows, check the box that says 'Add Python to PATH' before clicking 'Install Now'. On macOS, the installer will automatically add Python and pip to your PATH. On Linux, use your system's package manager: for Ubuntu/Debian, run
sudo apt update && sudo apt install python3 python3-pip; for Fedora, usesudo dnf install python3 python3-pip. - After installation, close and reopen your terminal to refresh the PATH environment.
- Type
pip --versionagain. If it shows a version and path, pip is now accessible. - Test pip by installing a small package: type
pip install requestsand press Enter. If it installs without errors, your setup is complete.
Common Mistakes
- Using
pipinstead ofpip3on Linux or macOS systems with both Python 2 and Python 3 installed — always usepip3ifpipdoesn't work. - Installing Python from the Microsoft Store on Windows without checking 'Add Python to PATH' — this often leaves pip inaccessible from the command line.
- Running pip in a virtual environment without activating it first — if you created a venv, run
source venv/bin/activate(macOS/Linux) orvenv\Scripts\activate(Windows) before using pip. - Using system Python on macOS (pre-installed Python 2.7) — Apple disables pip on these versions. Always install Python 3 from python.org.
- Typing
pip installin a Python REPL (interactive shell) instead of the terminal — pip must be run from the system shell, not inside Python.
Tips
- Use
python -m pip installinstead ofpip install— this ensures you're using the pip module tied to the specific Python interpreter you're calling, avoiding PATH conflicts. - If you have multiple Python versions, always specify the version:
python3.11 -m pip install package-name. - On macOS, if you use Homebrew, install Python via
brew install python— this automatically links pip correctly. - Keep pip updated: run
python -m pip install --upgrade pipafter installing Python. - Never run pip with sudo on macOS or Linux unless absolutely necessary — it can break system packages. Use virtual environments instead.
Troubleshooting
- If
pip --versionstill fails after installing Python, check your PATH. On Windows, open Environment Variables (search 'Edit environment variables'), then verify Python and Scripts folders are listed under 'Path'. They usually appear asC:\Python311\andC:\Python311\Scripts\. Add them manually if missing. - On Linux, if
pip3works butpipdoesn’t, create a symlink:sudo ln -s /usr/bin/pip3 /usr/bin/pip(adjust path if needed usingwhich pip3to find it). - If you’re in a virtual environment and pip still isn’t found, deactivate and reactivate it:
deactivate, thensource venv/bin/activateagain. - If you installed Python via a third-party tool like Anaconda, use
conda install pipinstead of downloading Python separately. - If you're on a corporate or locked-down system, ask your IT department — they may block Python installations or require internal repositories.
- If pip installs but gives SSL errors, run
python -m pip install --upgrade certifito refresh certificate bundles.
Frequently Asked Questions
Why does pip install not work even after installing Python?
Some installers, especially on Windows, don’t add pip to the system PATH. Always check the 'Add Python to PATH' box during installation. If you missed it, reinstall or manually add the Scripts folder to your PATH.
Can I use pip without installing Python?
No. pip is a package manager that runs on Python. You must have Python installed first. There is no standalone version of pip.
Is pip the same as pip3?
On systems with both Python 2 and Python 3, pip usually refers to Python 2, and pip3 to Python 3. On modern systems (Python 3.4+), pip and pip3 are often identical. If unsure, use pip3 or python -m pip.
Why is pip not found in my virtual environment?
You likely didn’t activate the environment before running pip. Use the activate script first. If the venv was created without pip (e.g., using --without-pip), recreate it with python -m venv venv.
Does pip work on Windows 7 or older systems?
Official Python versions no longer support Windows 7. Use Windows 10 or later. If you must use an older OS, install Python 3.8 or earlier, which still supports it.
Why does pip install fail with permission errors?
You’re trying to install packages system-wide without admin rights. Use a virtual environment (python -m venv myenv) or install with the --user flag: pip install --user package-name.