'pip' is not recognized as an internal or external command
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game Looping
--
Chapters
00:00 'Pip' Is Not Recognized As An Internal Or External Command
00:25 Accepted Answer Score 774
01:21 Answer 2 Score 333
01:34 Answer 3 Score 246
02:49 Answer 4 Score 86
03:12 Answer 5 Score 55
03:23 Thank you
--
Full question
https://stackoverflow.com/questions/2370...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #django #windows #pip
#avk47
ACCEPTED ANSWER
Score 785
You need to add the path of your pip installation to your PATH system variable. By default, pip is installed to C:\Python34\Scripts\pip (pip now comes bundled with new versions of python), so the path "C:\Python34\Scripts" needs to be added to your PATH variable.
To check if it is already in your PATH variable, type echo %PATH% at the CMD prompt
To add the path of your pip installation to your PATH variable, you can use the Control Panel or the setx command. For example:
setx PATH "%PATH%;C:\Python34\Scripts"
Note: According to the official documentation, "[v]ariables set with setx variables are available in future command windows only, not in the current command window". In particular, you will need to start a new cmd.exe instance after entering the above command in order to utilize the new environment variable.
Thanks to Scott Bartell for pointing this out.
ANSWER 2
Score 342
For Windows, when you install a package, you type:
python -m pip install [packagename]
ANSWER 3
Score 252
As of now, version 3.7.3 I had a little bit of an issue with getting the right system variable.
Try this:
Type
start %appdata%in cmd.After that file explorer should pop up in
../AppData/Roaming.
Go back one directory and navigate to Local/Programs/Python/Python37-32/Scripts.
NOTE: The version number may be different so if you copy and paste the above file path it could not work.
After you do this you now have the correct location of your downloaded Python. Copy your file path by selecting the whole directory in the address bar.
Once you do that click the start icon and navigate to the Control Panel → System and Security → System. Then click "Advanced System Settings" on the left side of the panel.
Once there, click Environment Variables on the bottom right and there will be two boxes, an upper and a lower box. In the upper box: Click on the 'Path' Variable and click Edit located on the right. Click New and paste your directory Path. It should look something like this:
Click OK three times, open a new window of cmd and type: pip. See if it works.
ANSWER 4
Score 86
For me the command:
set PATH=%PATH%;C:\Python34\Scripts
worked immediately (try after echo %PATH% and you will see that your path has the value C:\Python34\Scripts).
Thanks to: Adding a directory to the PATH environment variable in Windows


