Overview
The "pip is not recognized" error means Windows can’t find pip on your PATH — usually because Python was installed without adding it. This guide shows how to fix the PATH and confirm pip works.
The "pip is not recognized" error.
Key Takeaways
- pip must be on the system PATH to run by name.
- Reinstalling Python with "Add to PATH" is the easiest fix.
- You can also add the Scripts folder to PATH manually.
- python -m pip works even when pip isn’t on PATH.
Quick Workaround: Use python -m pip
1. Open Command Prompt.
2. Run: python -m pip --version
3. If that works, use "python -m pip install <package>" until you fix the PATH.
Fix 1: Reinstall/Modify Python with PATH
1. Download Python from the official python.org site.
2. Run the installer and tick "Add python.exe to PATH".
3. Or use "Modify" on an existing install and enable the PATH option.
4. Restart the terminal and test: pip --version
Fix 2: Add pip to PATH Manually
1. Find your Python Scripts folder, e.g., C:\Users\<you>\AppData\Local\Programs\Python\Python3x\Scripts.
2. Open Settings and search "Edit the system environment variables" > Environment Variables.
3. Under Path, click New and add both the Python folder and its Scripts folder.
4. Click OK, reopen the terminal, and run pip --version.
Fix 3: Ensure pip Is Installed
1. Run: python -m ensurepip --upgrade
2. Then upgrade: python -m pip install --upgrade pip
3. Confirm with pip --version.
Troubleshooting
Problem: "python" is also not recognized.
Solution: Python itself isn’t on PATH — reinstall with "Add to PATH" or add its folder to Path manually.
Problem: Changes not taking effect.
Solution: Close and reopen the terminal (or sign out/in) so it picks up the new PATH.
Problem: Multiple Python versions.
Solution: Use the py launcher (py -m pip …) or ensure the intended version’s Scripts folder is first on PATH.
Problem: pip works in one terminal, not another.
Solution: You edited User vs System PATH — add it to the scope your terminal uses, then reopen it.
Conclusion
The pip error is a PATH problem. The cleanest fix is reinstalling Python with "Add to PATH" ticked; otherwise add the Scripts folder to Path manually, or use "python -m pip" as a reliable workaround.
</w:pBdr><w:spacing w:before="220" w:after="40"/></w:pPr><w:r><w:rPr><w:b/><w:bCs/><w:color w:val="0B5394"/><w:sz w:val="21"/><w:szCs w:val="21"/><w:rFonts w:ascii="Calibri" w:cs="Calibri" w:eastAsia="Calibri" w:hAnsi="Calibri"/></w:rPr><w:t xml:space="preserve">About TechHub
This guide is part of the TechHub Knowledge Base. For more step-by-step IT guides and support, visit techhub.com.lk.















