Pip does not work on windows 10, freezes the promt command

I recently installed Python for Windows 10 and you need to use the pip command to install the request packages. However, whenever I try to use pip in cmd, it just freezes my command line.

Using CTRL + C, CTRL + D, or any command like this to cancel it, doesnโ€™t work either, the request just hangs like waiting for input or something like that, but I don't get any output or any information about what to do. Image of the promt command when it freezes

I set the PATH variable correctly, and my computer finds pip and starts it, but it just freezes. I also tried reinstalling python countless times and manually reinstalling the pip, but nothing like the trick.

EDIT: (Solution) Using easy_install worked for me (thanks Marco), so I could install the packages I needed for my project. I also managed to fix pip using easy_install, so pip is also working for me now. The feed solution was: easy_install pip

+5
source share
8 answers

Try using easy-install insted of pip, it works the same.

0
source

I had the same problem (Windows 10.0.10240). By typing only a pip and pressing the enter button, nothing else happened on the console. This problem affected, including other .exe compiled python-related scripts, such as mezzanine-project.exe.

AVAST anti-virus was the culprit (in my case) !!!

After disabling the AVAST file module (or uninstalling AVAST), pip started working again.

+15
source

I did not think I had the same problem as @Marcio, but the longer it lasted, it turned out.

In avast, go to settings, go to Active PRotection, go to File System Shield and add an exception for

C:\Python27\Scripts 

should work without rebooting, for me I had problems with the Virtualenv.exe file, which is located in this folder.

+4
source

@eryksun provided what, in my opinion, should be the answer to this question. I also had a command prompt when I try to use pip, but I don't want to use easy_install . The solution (from @eryksun) was to use python -m pip install package_name . This works great for managing python packages on Windows 10.

+1
source

I had this exact problem with the numpy module. The only way I could fix this is to follow these steps: Install NumPy and SciPy on 64-bit Windows (using Pip)

The steps were

This worked great for me. Hope this helps someone else with this exact problem.

+1
source

Marco's answer worked fine, but the actual solution to the problem is that you have to write pip commands using python -m pip instead of pip so your command will be python -m pip install requests

0
source

Well, when you run python -m pip, it actually starts pip.exe as a child process, so in the end it freezes the same for me, although it works a little longer ... The worst thing is that the pip.exe process completely zombies, no way to kill him even with ProcExpl ....

0
source

I had the same problem. Just unplug your antivirus and it should work.

0
source

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


All Articles