Pip hangs in Windows 7

I have Python 2.7.10 installed with pip om Windows 7. When I try to install a package or even just run pip in cmd without parameters, it stacks, doesn't print anything, and even ctrl + c does not work, I have to close cmd.
The task manager shows 3 starts of pip.exe *32 processes, and when I close cmd, I can kill one of them. The other 2 are removed only after restarting Windows.
The same thing happens with Python 3.5 I tried reinstalling pip or python, and was not useful.
pip-7.1.2

upd 1
It turned out that I have the same problem with virtualenv.

+7
python windows pip
source share
3 answers

Try py -2 -m pip instead of pip

+1
source share

I had exactly the same problem. The reason - in my case - was my antivirus program Avast. He blocked the pip. As soon as I inactivated it. It works. I need to find a way to explain Avast to stop the pip lock.

+7
source share

I had the same problem (pip and virtual screw). As 3bek suggested, it was really Avast! malfunction. To test this, you can turn Avast off for a few minutes and try drinking again.

To teach Avast to respect these programs here, that was:

  • Open the Avast GUI, go to settings-> general-> exceptions
  • Add the global pip.exe file to the file path. For me it was c: \ Python34 \ Scripts \ pip.exe.
  • Now run this global pip at the command prompt (i.e. not under any virtualenv). This should be good (on the list for me it was after Avast checked exe).
  • After that, I can run all the other pip.exe, which are part of my different virtualenvs.
+5
source share

All Articles