I just installed Python 2.7.10 on windows 10.
I have added my python and pip
directory to my PATH like so:
My Scripts folder looks like this:
My problem is, when I type in "pip" in command prompt and press enter absolutely nothing happens, even if I wait several minutes. If I remove the Scripts directory from the PATH variable I just get the error message like "pip not recognized as internal or external command". Python works fine. I have also tried to reinstall both pip and Python but the same problem occurs. So, does anyone have any idea about why pip does not do anything?
**Edit: ** when I say it does not do anything, I mean the cmd "hangs", like if it is waiting for something to happen. The cursor just keeps on blinking.
Try disabling your virus scanner. If this fixes it, exclude the
C:\Python27\
folder from scanning (at your own risk).I had this same issue: typing
pip
on the command line just puts the cursor on the next line, and nothing happens. I was sure myPATH
system variable hadC:\Python27\
andC:\Python27\Scripts\
in it, and I could verify it usingecho %PATH%
on the command line.I found that I had to disable my virus scanner (Avast). I excluded the
C:\Python27\
from virus scanning, and now everything works. Apparently the scanner is interfering with Python's ability to load the module.One command that is bound to work is writing:
This works because you hand off the script invocation to python, which you know works, instead of relying on the
PATH
environment variable of windows, which can be dodgy.Packages like numpy that require c-extensions to be built, will not work with
pip
unless you have a C Compiler installed on your system. More information can be found in this question.If you are, as you're saying, unfamiliar with the python environment, then let me assure you, you will have a better day by installing Anaconda.
Anaconda comes with numpy, of course.
After Python including pip at package, pip commands not work sometimes. Then you can use pip through python like
Add the following path or you can also cd to the path and then try pip command, it will work fine.
C:\Python27\Lib\site-packages\pip