How to Fix pip is not recognized as internal or external command Error on Windows

Written by Yannick Brun

October 17, 2025

Quick Answer

πŸ’‘ The Fix: The “pip is not recognized as internal or external command” error occurs when Windows can’t locate pip in your system PATH. You can resolve this immediately by using python -m pip instead of just pip, or permanently fix it by adding Python’s Scripts folder to your Windows PATH environment variable.

Why This Error Happens

When you install Python on Windows, pip (Python’s package installer) should automatically be added to your system’s PATH. However, several common scenarios can prevent this:

  • πŸ“ Python’s Scripts directory wasn’t added to PATH during installation
  • πŸ”§ You have multiple Python versions creating path conflicts
  • ⚠️ Python was installed without the “Add to PATH” option checked
  • 🏒 Corporate or restricted environments blocking PATH modifications

Method 1: Immediate Workaround (Works Every Time)

The fastest solution is to use Python’s module execution syntax instead of calling pip directly:

# Instead of: pip install package_name
# Use this:
python -m pip install package_name

# Check pip version
python -m pip --version

# Upgrade pip
python -m pip install --upgrade pip

Why this works: This command tells Python to run the pip module directly, bypassing the need for Windows to find pip in the PATH.

Method 2: Add pip to Windows PATH (Permanent Solution)

Step 1: Find Your Python Scripts Directory

First, locate where Python installed pip. Open Command Prompt and run:

python -c "import sys; print(sys.executable)"

This will show something like: C:UsersYourNameAppDataLocalProgramsPythonPython311python.exe

The Scripts folder will be in the same directory: C:UsersYourNameAppDataLocalProgramsPythonPython311Scripts

Step 2: Add to Windows PATH

  1. Press Windows key + R, type sysdm.cpl, and press Enter
  2. Click the Environment Variables button
  3. Under System Variables, find and select Path, then click Edit
  4. Click New and paste your Scripts directory path
  5. Click OK to save all dialogs
  6. Restart Command Prompt and test with pip --version

⚑ Pro Tip: You may need to add both the Python installation directory AND the Scripts directory to your PATH for everything to work correctly.

Method 3: Reinstall Python with Proper Configuration

If you’re still having issues, a clean Python installation often resolves persistent problems:

Uninstall Current Python

  1. Go to Settings > Apps & Features
  2. Search for “Python” and uninstall all versions
  3. Delete any remaining Python folders from your system

Fresh Installation Process

  1. Download Python from python.org
  2. Run the installer as administrator
  3. βœ… Important: Check “Add Python to PATH” during installation
  4. Choose “Install Now” or customize to include pip
  5. Verify installation with python --version and pip --version

Method 4: Manual pip Installation

If pip is completely missing from your Python installation:

# Download get-pip.py
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

# Install pip
python get-pip.py

# Verify installation
python -m pip --version

Testing Your Configuration

After applying any fix, test these commands to ensure everything works:

Command Expected Result
pip --version Shows pip version and location
python -m pip --version Alternative that should always work
pip list Lists installed packages

Common Troubleshooting Scenarios

πŸ”„ Multiple Python Versions

If you have Python from different sources (Microsoft Store, python.org, Anaconda), they can conflict. Use specific commands:

  • py -3.11 -m pip for Python 3.11
  • python3 -m pip for Python 3
  • Consider using Python launchers like py instead of python

πŸ›‘οΈ Permission Issues

If you get permission errors, try:

  • Running Command Prompt as Administrator
  • Using --user flag: python -m pip install --user package_name
  • Installing to virtual environments instead of system-wide

🏒 Corporate Networks

Some corporate environments block pip. Solutions include:

  • Using proxy settings: pip install --proxy http://proxy.company.com:port package_name
  • Downloading packages manually and installing offline
  • Requesting IT to whitelist Python package repositories

Prevention Tips for Future Installations

πŸ”§ Best Practices:

  • Always check “Add Python to PATH” during installation
  • Use virtual environments for project dependencies
  • Keep one primary Python installation to avoid conflicts
  • Regularly update pip: python -m pip install --upgrade pip

Frequently Asked Questions

❓ Why does python -m pip work but pip doesn’t?

The python -m pip command runs pip as a Python module, which doesn’t require pip to be in your PATH. It’s the most reliable method regardless of your system configuration.

❓ Can I use pip without adding it to PATH permanently?

Yes! You can always use python -m pip instead of pip. Many developers prefer this method as it’s explicit about which Python installation you’re using.

❓ What if I have both Python 2 and Python 3 installed?

Use specific commands to target the right version:

  • python3 -m pip for Python 3
  • py -3 -m pip using Python Launcher
  • py -2 -m pip for Python 2 (if still needed)

❓ Is it safe to modify the Windows PATH variable?

Yes, adding Python directories to PATH is safe and standard practice. Just be careful not to accidentally delete existing PATH entries when editing.

❓ Why do some tutorials show different pip installation paths?

Python installation paths vary depending on:

  • Installation method (Microsoft Store vs python.org)
  • User vs system-wide installation
  • Python version
  • Windows user account settings

Key Takeaways

  • πŸš€ python -m pip is your immediate, foolproof solution
  • πŸ”§ Adding Python Scripts to PATH provides a permanent fix
  • βœ… Always verify installations with version checks
  • πŸ—οΈ Clean Python installations prevent most pip issues
  • πŸ›‘οΈ Virtual environments help avoid system-wide conflicts

For additional troubleshooting resources, check the official pip documentation and Python’s installation guide.

Hi, I’m Yannick Brun, the creator of ListPoint.co.uk.
I’m a software developer passionate about building smart, reliable, and efficient digital solutions. For me, coding is not just a job β€” it’s a craft that blends creativity, logic, and problem-solving.

Leave a Comment