Pip Installs Packages (“pip”) is a package organization system for installing and running Python software packages. It is generally used for Python Package Index packages.

Bạn Đang Xem: How To Fix ‘Pip’ is not recognized as an internal or external command – Jugo Mobile
When installing Python packages, many users report getting the message “‘pip’ is not recognized as an internal or external command” and don’t know how to fix the problem. If you see this error, read on for tips on how to fix it.
Causes of ‘Pip’ not recognized as program or batch file usable by internal or external command
Let’s look at the two most common reasons for this error:
Pip install not in system variable
For Python commands to run from a Windows command prompt, the path to your pip installation will need to be added to your system PATH variable. It should be added automatically if you installed Python via the installer file.
The installation was added to your PATH incorrectly
If you added the path manually, the problem could just be a typo. A missing semicolon before the new path or an extra space somewhere will produce an error.
How To Fix ‘Pip’ Is Not Recognized As An Internal Or External Command In Windows 10
Try the following fixes to resolve the issue in Windows 10:
Fix 1: Make sure Pip has been added to your PATH variable
If you’re sure it’s been added, skip to fix 3.
Here’s a quick way to check:
- Open the “Run” dialog box by pressing the Windows key + R.
- Type ”
cmd
» and hit Walk in. - To get a list of all locations added to your PATH variable, type ”
echo %PATH%
in the command prompt, then press Walk in. - If you find a path like “C:Python39Scripts” (depending on your version of Python), the path has been added to the PATH variable.
If pip was not added, try the next fix.
Fix 2: Add Pip to PATH environment variable
Xem Thêm : M. Night Shyamalan’s New Movie Knock at the Cabin Starts Filming
Here’s how to manually add pip to the PATH environment using the Windows GUI and command prompt. Once the path is added, open a new command window and try installing a pip package to see if the issue has been resolved.
Add pip to the PATH using the Windows GUI:
- Open the “Run” dialog box by pressing the Windows key + R.
- Type ”
sysdm.cpl
» and press Walk in to access System properties. - Select the Advanced tab, then Environment variables.
- Go to System Variables and select Way.
- Click it To modify button.
- Click on New to add pip installation path. The default location is: “C:users”your-username”AppDataProgramsPythonPython39” for Python 3.9.
Add pip to the PATH using CMD:
- Launch it Course dialog box by pressing the Windows key + R.
- For a new command prompt window, type ”
cmd
» then press Walk in. - Type the command ”
setx PATH “%PATH%; C:Python39Scripts
» and press Walk in to run it.
To note: If you installed Python in a different location, change the path after ‘; ” Consequently.
Fix 3: Open Python package without adding Pip variable
Follow these steps to open Python installer packages in CMD without adding the pip variable:
- press the Windows key + R to open Course.
- Type ”
cmd
» and press Walk in to open the command prompt. - Enter the command ”
python -m pip install (package name)
and run it.
Fix 4: Make sure Pip is included in the installation
Some Python installers exclude pip from the default installation. You can fix this problem by modifying the Python installation to include pip, and here’s how:
- press the Windows key + R to open Course.
- Type ”
appwiz.cpl
” and Walk in. - In Program and featuresright click Python and click Switch.
- To select To modify.
- In Optional Featurescheck the seed box and blow Following.
- To apply the changes, click Install.
- Once the installation is complete, open a CMD window to check if you can install a Python package without receiving the error.
If you still see the error, go to the last section of this article to learn how to uninstall and reinstall Python 3.9.
How to fix ‘Pip’ is not recognized as an internal or external command in Visual Studio Code
If you see this error message when working with Visual Code, it usually means there is a problem with the Python installation or the PATH was not set correctly. Try the following tips to resolve the issue:
Fix 1: Make sure “Pip” is added to your PATH variable
If you are sure that pip has been added, go to fix 3.
To verify that pip has been added to your PATH variable:
- press the Windows key + R to open Course.
- Type ”
cmd
» then press Walk in for the command prompt. - To get a list of locations added to your PATH variable, type ”
echo %PATH%
» and hit Walk in. - Seeing a path like “C:Python39Scripts” means the path has been added to the PATH variable.
Xem Thêm : Before the French Days, this giant 150 GB plan is only € 10.99 / month
If pip has not been added, try one of two methods to add it:
Fix 2: Add Pip to PATH environment variable
Follow these next steps to manually add pip to the path environment using the Windows GUI or CMD. Once the path is added, open a new CMD window and try installing a pip package to see if the issue is resolved.
Add pip to the PATH using the Windows GUI:
- Open the “Run” dialog box by pressing Windows key + R.
- Type ”
sysdm.cpl
and press “Enter” to access “System Properties”. - Select the “Advanced” tab, then “Environment Variables”.
- Go to “System Variables” and select “Path”.
- Click on the “Edit” button.
- Click “New” to add pip installation path. The default location is: “C:users”your username “AppDataProgramsPythonPython39” for Python 3.9.
Add pip to the PATH using CMD:
- Launch it Course dialog box by pressing the Windows key + R.
- For a new command prompt window, type ”
cmd
” then press Walk in. - Type the command ”
setx PATH “%PATH%; C:Python39Scripts
” and press Walk in to run it.
Fix 3: Open Python package without adding Pip variable
Follow these steps to open Python installer packages in CMD without adding the pip variable:
- Open a Course dialog box.
- Type ”
cmd
” and press Walk in to open the command prompt. - Enter the command ”
python -m pip install (package name)
” and launch it.
Fix 4: Make sure Pip is included in the installation
Some Python installers omit pip from the default install. You can fix this problem by modifying the Python installation to include pip, and here’s how:
- press the Windows key + R to open Course.
- Type ”
appwiz.cpl
” and Walk in. - In Program and featuresright click Python and click Switch.
- To select To modify.
- In Optional Featurescheck the seed box and blow Following.
- To apply the changes, click Install.
- Once the installation is complete, open a CMD window to check if you can install a Python package without receiving the error.
If you still see the error, go to the last section of this article to learn how to uninstall and reinstall Python 3.9.
Reinstall Python to fix ‘Pip’ is not recognized as an internal or external command
This error usually means that there is a problem with the installation of Python or that the PATH system variable is not configured correctly. Try reinstalling Python and all of its components to resolve the issue. The easiest way is to use the Python executable installer. Here’s how:
- Open a Course dialog box.
- Course ”
appwiz.cpl
” to go to Programs and Features. - Scroll down to the list of programs to find the Python installation.
- Right click on it and select Uninstallthen follow the instructions.
- Once Python is uninstalled, restart your computer and download the latest Python installer for your operating system.
- Run the installation file and make sure the Add Python 3.x to PATH checkbox is checked, the x being the Python version 3 you have.
- To select Customize the installation.
- Since Optional Featuresensure the seed option is checked, then click Following.
- The default location can be left as is, click Install.
- Once the installation is complete, you should be prompted to restart your computer.
- After your computer restarts, try installing a Python package again.
Pip is now recognized
The error message “‘pip’ is not recognized as an internal or external command” is common. The cause is usually because the pip installation path is not available or it was incorrectly added to the system variable path. There are several ways to solve this problem. You can add it manually via the Windows GUI or CMD, modify the Python installation to include pip, or uninstall and reinstall Python to make sure the “pip” options are checked.
Were you able to get pip recognized? What did you do to solve the problem? Tell us in the comments section below.
The source: https://nguyendiep.com
Category: game