-3

I tried following the instructions here with no luck.

Attached is my cmd prompt output. Any suggestions?

enter image description here

extensionhelp
  • 564
  • 1
  • 4
  • 18

4 Answers4

3

It looks like pip is not on your path. Try issuing the pip command again in the folder C:\Python27\Scripts.

BoarGules
  • 16,440
  • 2
  • 27
  • 44
2

I do not suggest using setx and it's unfortunate that search results specifically for pip point to that advice e.g. this. The truncation message to 1024 characters is real. It's very easy for that to simply knock things out of your PATH unintentionally and you might not know what got kicked out in Python's place, if it gets added at all. It will execute and then tell you the issue after the PATH has been modified. You do need to add pip to your PATH, though.

Instead, edit through right clicking My Computer and selecting "properties" (this is Windows 7):

enter image description here

As illustrated:

  1. Advanced System Settings
  2. Environment Variables
  3. Edit the PATH for "User variables". Each path should be separated by ;.

You need to add the path to pip.exe. It's likely in the Scripts subfolder of the Python installation. You need to only provide the directory path, not reference the .exe directly.

setx does have its uses. In really locked-down systems, you can still use it without admin privileges; make of that what you will.

roganjosh
  • 12,594
  • 4
  • 29
  • 46
  • You spent two hours critiquing the other proposed solutions before posting your own. What was the point of that? I upvoted your answer by the way... not trying to get into a dispute with you involving downvotes on our other answers, as can sometimes happen. I'm genuinely curious. – alfonso Jan 22 '19 at 22:53
  • @alfonso giving what I believe to be the correct response and not one that trashes the OP's Python setup? And how have I spent 2 hours doing it; I commented under the post that I was on my phone and waiting to get to a laptop? What was the point of your comment? – roganjosh Jan 22 '19 at 22:56
  • @alfonso I didn't downvote on this question at all btw and I missed your edit since I'm back on a phone. – roganjosh Jan 22 '19 at 22:57
  • The time stamps indicate two hours difference. Maybe it's more than an hour and less than two, but still. If you had a solution, why not post immediately? About downvotes, sometimes people respond to my comments by passive aggressively downvoting me across the site. – alfonso Jan 22 '19 at 22:58
  • I just saw your comment about being on the train... I stand corrected. I'll be on my way. – alfonso Jan 22 '19 at 23:00
0

well, I am guessing you are using Windows system. Then I'm also guessing you specified wrong path to the pip program. Check again where is your pip.exe located and add this location to the PATH instead.

smoczyna
  • 489
  • 6
  • 18
0

The faster way is to reinstall python, and click on the box in the installer that says:

  • Add Python X.X to PATH

python installer

Lucas Hort
  • 812
  • 7
  • 9