Can't use pip after download?

3

This is how I downloaded pip:

  • I installed https://bootstrap.pypa.io/get-pip.py and placed it in the scripts subdirectory of Python.

  • Then I ensured that the scripts subdirectory was a part of my system path.

  • Next I used command prompt to navigate to the file and ran it.

  • It downloaded and installed pip successfully (As far as I could tell).

My problem is that now when I try to use the pip install Django==1.6.5 command, it says pip is not recognized as an internal or external command.

What am I missing?

Nebur

Posted 2014-07-27T04:40:46.500

Reputation: 135

Answers

2

My problem was that I was adding ;C:\Python\Scripts to the system variables PATH.

Adding this to the user variables PATH resolved my issue.

Nebur

Posted 2014-07-27T04:40:46.500

Reputation: 135

5

Did you check if you have pip.exe's parent directory added to your "Environment variables" paths?

You can use this page to consult on how to check / change / add / delete environment variable paths. How to set the path and environment variables in Windows

Basically what you have to do is

  1. Find pip.exe, which is most likely in C:\Python27\Scripts\pip.exe
  2. Add it's parent directory (eg. C:\Python27\Scripts) in the Environment Variable paths.

Now you should be able to run commands using pip such as pip install httpie.

Hopefully the matter is resolved for you.

Unrealist

Posted 2014-07-27T04:40:46.500

Reputation: 173

1Yeah, I've done this already S: no luck – Nebur – 2014-07-27T05:14:45.467

Im going to go ahead and try a system restart – Nebur – 2014-07-27T05:15:51.480

You must reboot after that :) – Unrealist – 2014-07-27T05:16:23.540

Still no good )= , any other ideas? – Nebur – 2014-07-27T05:21:13.467

Ok go to the pip.exe directory and open your command shell there and then execute the command. See if that helps. If that works, then you might have to recheck you environment paths. – Unrealist – 2014-07-27T05:30:03.273

Still nope S: This is the worst haha – Nebur – 2014-07-27T05:51:08.247

Do you even have pip in your Python/Scripts directory? Because otherwise that means, the installation didn't go right. – Unrealist – 2014-07-27T05:52:57.793

Yeah its there, It ended up in Python27\Lib\site-packages... and I tried to add that to the Path as well... no luck – Nebur – 2014-07-27T05:55:54.897

Try this instead for both Python27/Scripts and Python27/Lib/site-packages directories

Type the following in your command prompt and then run pip [ setx PATH "%PATH%;C:\Python34\Scripts" ] – Unrealist – 2014-07-27T06:01:03.747