Pip command does nothing

I just installed Python 2.7.10 on Windows 10.
I added my python and pip directory to my PATH like this:

enter image description here

The My Scripts folder is as follows:

enter image description here

My problem is that when I type "pip" on the command line and press enter, absolutely nothing happens, even if I wait a few minutes. If I delete the Scripts directory from the PATH variable, I just get an error, for example, "pip is not recognized as an internal or external command." Python works great. I also tried reinstalling both pips and Python, but the same problem occurs. So, does anyone have an idea why pip is not doing anything?

** Edit: ** When I say that he does nothing, I mean that cmd is "freezing", for example, if it is waiting for something. The cursor just keeps flashing.

+5
source share
4 answers

One command that should work writes:

 python -m pip install requests 

This works because you pass the script call to python, which you know works, instead of relying on the PATH environment variable for windows, which can be dodgy.

Packages like numpy, which require the creation of c-extensions, 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, as you say, are not familiar with the python environment, then let me assure you that you will have a better day by installing Anaconda .

Anaconda is a completely free Python distribution (including for commercial use and redistribution). It includes over 300 of the most popular Python packages for science, math, engineering and data analysis.

Anaconda comes with numpy, of course.

+9
source

After Python, including pip in a package, pip commands sometimes do not work. Then you can use pip via python, for example

 python -m pip <pip commands that you want> 
+3
source

Try disabling your antivirus. If this is fixed, exclude the C:\Python27\ folder from the scan (at your own risk).


I had the same problem: typing pip on the command line just by placing the cursor on the next line will fail. I was sure that my PATH system variable had C:\Python27\ and C:\Python27\Scripts\ in it, and I could check it with echo %PATH% on the command line.

I found that I had to disable my antivirus (Avast). I excluded C:\Python27\ from the virus scan, and now everything works. The scanner seems to be hindering Python's ability to load the module.

+2
source

Add the following path or you can also cd go to the path and then try the pip command, it will work fine.

C:\Python27\Lib\site-packages\pip

0
source

Source: https://habr.com/ru/post/1236813/


All Articles