- Causes of ‘Pip’ are not recognized as a program or batch file operable by internal or external command
- Reason #1: Pip installation is not in the system variable
- Reason #2: The installation was not added to your PATH or system variables
- How to fix ‘Pip’ is not recognized as an internal or external command in Windows 10 or Visual Studio Code
- Solution 1 – Make sure Pip has been added to your PATH variable
- Solution 2 – Add Pip to the PATH environment variable
- How to add Pip to PATH environment variable using system properties
- How to add Pip to PATH environment variable using command prompt
- Solution 3 – Open Python Package Without Adding Pip Variable
- Solution 4 – Make sure Pip is included in the installation
- Reinstall Python to fix ‘Pip’ not being recognized as an internal or external command
- Pip is now recognized
Pip, also known as “PIP Installation Packages”, is a package organization system for installing and operating Python software packages. Yes, they are “Installations” and “Packages” with an “s”. Typically used for Python package index packages.
When installing Python packages, many users report receiving the message “‘pip’ is not recognized as an internal or external command” and are not sure how to fix the problem. If you see this error, read on for tips on how to fix it.
Causes of ‘Pip’ are not recognized as a program or batch file operable by internal or external command
Let’s look at the two most common reasons for this error:
Reason #1: Pip installation is not in the system variable
In order for Python commands to be executed from the Windows command prompt, the pip installation path will need to be added to the “PATH” system variable. It should be added automatically if you got Python through the installation file.
Reason #2: The installation was not added to your PATH or system variables
If you added the path manually, the problem could be a typo. A missing semicolon or extra space somewhere will produce an error.
How to fix ‘Pip’ is not recognized as an internal or external command in Windows 10 or Visual Studio Code
If you see this error message when working in Windows or with Visual Code, it usually means that there is a problem with the Python installation or that the PATH has not been set correctly. Try the following tips to fix the problem:
Solution 1 – Make sure Pip has been added to your PATH variable
If you are sure that pip was added to the PATH variable, continue with “Solution 3”. If not, continue here.
- Press “Windows key + R”. to open the “Run” dialog box.

- Guy”
cmd"and press “Get into.”
- To get a list of all locations added to your PATH variable, type “
echo %PATH%“ without quotes at the command prompt, then press “Get into.”
- The path was successfully added to the PATH variable if it found something like “C:\Python39\Scripts” (the number depends on your Python version).

If pip has not been added, try the following solution.
Solution 2 – Add Pip to the PATH environment variable
There are two ways to add pip to the PATH environment variable: System Properties and Command Prompt.
How to add Pip to PATH environment variable using system properties
- Open the “Run” dialog box by pressing the button “Windows key + R”.

- Write“
sysdm.cpl“ and press “Get into” to access “System Properties”.
- Select the “Advanced” tab, then click “Environment Variables.”

- Go to the “System Variables” p and select “Path,” then click “Edit” button at the bottom.

- Click “New,” then add your “nugget installation path” followed by “Get into,” and then select “OK” to save it and close the window. The default location is: “C:\Python##\Scripts” with real numbers, but your location and file version may differ.

- Once the path has been added, restart Windows (IMPORTANT), open a new command window and then try installing a pip package to see if the problem is resolved.

How to add Pip to PATH environment variable using command prompt
- Press “Windows key + R”. to launch the “Run” dialog box.

- For a new command prompt window, type “
cmd"and then hit “Get into.”
- Type the following command (with your actual path after the semicolon) and press “Get into” to run it:
setx PATH "%PATH%;C:\Python39\Scripts"
Solution 3 – Open Python Package Without Adding Pip Variable
Follow these steps to open Python installation packages in CMD without adding the pip variable:
- Press the “Windows key + R” to open the “Run” message.

- Guy”
cmd"and press “Get into” to open the command prompt.
- Enter the following command to Python 3 (with the name of the package that uses pip), then press “Enter” to run it:
py -m pip3 install "package name"
Solution 4 – Make sure Pip is included in the installation
Some Python installers exclude pip from the default installation. You can fix this problem by changing the Python installer to include pip, and here’s how:
- press the “Windows key + R” to open the “Run” prompt.

- Guy “
appwiz.cpl“ and press “Get into.”
- In the “Program and Features” window, right-click “Piton” and choose “Change.”

- Select “Modify.”

- Under “Optional Features”, check the “nugget” box and press “Next.”

- In the “Advanced Options” window, make sure “Add Python to environment variables” is checked.

- To apply the changes, click “Install.”

- When the installation is complete, open “Symbol of the system” and check if you can install a Python package that uses pip without getting the error.

If you still see the error, head to the last p of this article for steps to uninstall and reinstall Python.
Reinstall Python to fix ‘Pip’ not being recognized as an internal or external command
This error usually means that there is a problem with the Python installation or that the PATH system variable is not set correctly. Try reinstalling Python and all its components to fix the problem. The easiest way is through the Python executable installer. Here’s how to do this:
- Press “Windows key + R” to open the “Run” dialog box.

- Guy “
appwiz.cpl“ to access the “Programs and Features” window.
- Scroll down the list of installed programs to find the Python installation, NOT the launcher.

- Right click and select “Uninstall” then follow the instructions.

- Once Python is removed, restart your computer (IMPORTANT) and download the latest version python installer for your operating system.

- Execute “python-3.##.#-amd64.exe” (or any installer you downloaded) by double-clicking the file or using the command prompt.

- Ensure “Add Python 3.## to PATH” is marked at the bottom, then choose “Customize installation”.

- In the “Optional Features” p, make sure “nugget” The option is checked, then click “Next.”

- The default location can be left as is, but be sure to “Add Python to environment variables” is checked, then click “Install.” You can also mark “Install Python 3.xx for all users” If desired.

- Once the installation is complete, install a Python 3 package that uses pip to see if the installation process works by typing the following:
py -m pip install "Project Name Here"
Pip is now recognized
The error message “‘pip’ is not recognized as an internal or external command” is a common scenario. The cause usually boils down to the pip installation path being unavailable or incorrectly added to the PATH system variable. You can add it manually via Command Prompt or System Properties, change the Python installation to include pip, or uninstall and reinstall Python and make sure the “pip” option and add it to environment variables are checked.