How to Fix Python "pip is not recognized" Error on Windows (2026 Guide)
If you see the error:
'pip' is not recognized as an internal or external command,
operable program or batch file.don't worry. This is one of the most common Python installation problems on Windows. In this guide, you'll learn how to fix it step by step.
Why Does This Error Happen?
The error usually appears because:
- Python is not installed correctly.
- The Scripts folder is not added to the Windows PATH.
- The Command Prompt needs to be restarted after installation.
Method 1: Check if Python Is Installed
Open Command Prompt and type:
python --versionIf Python is installed, you'll see the version number.
Method 2: Check pip
Run:
python -m pip --versionIf this works, pip is installed correctly.
Method 3: Add Python to PATH
- Search for Environment Variables in Windows.
- Open Edit the system environment variables.
- Click Environment Variables.
- Edit the Path variable.
- Add the Python installation folder and the Scripts folder.
Example:
C:\Users\YourName\AppData\Local\Programs\Python\Python313\
C:\Users\YourName\AppData\Local\Programs\Python\Python313\Scripts\Restart Command Prompt after saving the changes.
Method 4: Install or Upgrade pip
Run:
python -m ensurepip --upgradeThen update pip:
python -m pip install --upgrade pipVerify the Fix
Type:
pip --versionIf you see the pip version, the problem has been fixed successfully.
Tips
- Always check "Add Python to PATH" during installation.
- Download Python only from the official Python website.
- Restart Command Prompt after changing environment variables.
Conclusion
The "pip is not recognized" error is usually caused by PATH configuration issues. Following the steps above should solve the problem in just a few minutes. If the error still appears, reinstall Python and make sure the Add Python to PATH option is selected during installation.

Comments
Post a Comment