Home >Backend Development >Python Tutorial >Why Isn't 'pip' Recognized as a Command, and How Do I Fix the Path?
'pip' Not Recognized as a Command: Resolving the Path Issue
When attempting to install Django using 'pip', users may encounter the error "'pip' is not recognized." This is because Python's PATH variable does not include the location where pip is installed.
By default, pip is installed in the 'Scripts' subfolder of your Python installation directory. To resolve this issue, add this path to your PATH variable.
Method 1: Control Panel
;C:\Python34\Scripts
Method 2: setx Command
setx PATH "%PATH%;C:\Python34\Scripts"
Note: Remember to start a new command window after making these changes for the PATH variable to take effect.
The above is the detailed content of Why Isn't 'pip' Recognized as a Command, and How Do I Fix the Path?. For more information, please follow other related articles on the PHP Chinese website!