Pip Is Not Recognized As An Internal Or External Command Error Windows [Fixed] - Installation Guide

Опубликовано: 02 Март 2026
на канале: Neuraldemy
87
2

In this video, I’ll walk you through a common error encountered while installing Python libraries on Windows: the "Pip is not recognized as an internal or external command" error. This issue occurs when the Command Prompt doesn’t recognize the pip command, a tool used for installing and managing Python packages.

What is Pip?

Pip is Python’s package manager, and it’s essential for installing libraries and dependencies that expand Python’s capabilities. With pip, you can install packages from the Python Package Index (PyPI) directly into your Python environment, making it one of the most convenient ways to access Python’s extensive library ecosystem. However, if pip is not configured correctly, your system may not recognize it, resulting in the “Pip is not recognized” error.

Why Does This Error Occur?

The "Pip is not recognized as an internal or external command" error typically happens for one of two main reasons:

1. Pip is not installed: In some cases, pip may not have been included during Python installation, or it might not be installed as part of your Python setup.

2. Path Environment Variable Issue: The system’s Path variable, which tells the Command Prompt where to find executables, may not include the path to pip. This happens if Python or pip is not properly added to the system's environment variables, making pip inaccessible from the Command Prompt.

How to Fix the Error

The good news is that fixing this issue is simple. Here’s a quick step-by-step guide:

1. Check Python Installation: First, confirm that Python is installed correctly by running python --version in the Command Prompt. If Python is recognized, it’s likely the issue lies with pip.

2. Reinstall Pip: If pip is missing, you can reinstall it. Run the following command:

python -m ensurepip --upgrade

This command installs or upgrades pip if it’s missing from your system.

3. Add Pip to Path: Open the Control Panel and go to System and Security - System - Advanced system settings. Click on Environment Variables and find the Path variable under System Variables. Edit the Path and add the path to your Python Scripts folder, where pip is located. The location is typically:

C\Users\YourUsername\AppData\Local\Programs\Python\PythonXX\Scripts\

Replace YourUsername with your username and PythonXX with your Python version number.

4. Verify Installation: Close the Command Prompt, reopen it, and type pip --version to confirm pip is now recognized. You should see your pip version displayed, indicating the command is now functional.

Additional Tips: If you continue facing issues, try reinstalling Python and making sure to check the box that says “Add Python to PATH” during installation. This automatically adds both Python and pip to the environment variables.
___
#pyhton #python3 #pythonprogramming #pythontutorial