‘pip’ Is Not Recognized As An Internal Or External Command

This error indicates that the ‘pip’ command is not recognized by the command prompt or terminal. This is a common issue that can occur if Python or pip is not installed correctly or the system does not recognize the path where pip is installed.

Here are a few steps you can follow to fix this issue:

  1. Make sure that Python is installed correctly on your system. You can check this by running the following command in your command prompt or terminal:

    python --version

    If Python is installed, it will display the version number. If not, you need to install Python before you can use pip.

  2. Confirm that pip is installed by running the following command:

    pip --version

    If pip is installed, it will show the version number. If you receive the ‘pip’ is not recognized error again, try the following steps.

  3. Ensure that the Python Scripts directory is added to the system’s PATH environment variable. The Scripts directory contains the pip executable. The path may vary based on your Python installation and operating system.

    If you are using Windows, the Scripts directory is typically located in:


    Replace ‘XX’ with the version number of your Python installation.

    To add this directory to your PATH variable:

    • Open the start menu and search for ‘Environment Variables’.
    • Open ‘Edit the system environment variables’.
    • Click on ‘Environment Variables’.
    • In the ‘System variables’ section, scroll down and select the ‘Path’ variable, then click ‘Edit’.
    • Click ‘New’ and add the path to the Scripts directory.
    • Click ‘OK’ to close the windows.

    If you are using macOS or Linux, open the terminal and run the command:

    export PATH="$PATH:/Library/Frameworks/Python.framework/Versions/X.X/bin"

    Replace ‘X.X’ with the version number of your Python installation.

  4. Restart your command prompt or terminal window. After restarting, try running the ‘pip’ command again.

    pip --version

If you still encounter the error, it’s possible that Python or pip may not be installed correctly. In that case, you can try reinstalling Python or installing a package manager like Anaconda, which comes pre-installed with Python and pip.

About the Author Rex

I'm a passionate tech blogger with an insatiable love for programming! From my early days tinkering with code, I've delved into web dev, mobile apps, and AI. Sharing insights and tutorials with the world is my joy, connecting me to a global community of like-minded tech enthusiasts. Python holds a special place in my heart, but I embrace all challenges. Constantly learning, I attend tech conferences, contribute to open-source projects, and engage in code review sessions. My ultimate goal is to inspire the next generation of developers and contribute positively to the ever-evolving tech landscape. Let's code together!