Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip not working on windows 10, freezes command promt

I recently installed Python for windows 10 and need to use pip command to install requests package. However, whenever I try to use pip in cmd it just freezes my command prompt.

Using CTRL+C, CTRL+D or any command like that to cancel it does not work either, the prompt just freezes like its waiting for input or something, but I get no output or any clue about what to do. Picture of command promt when its frozen

I've set the PATH variable correctly, and my computer finds pip and launches it, but it just freezes. I've also tried reinstalling python countless times and manually reinstalling pip but nothing seems to do the trick.

EDIT: (Solution) Using easy_install worked for me (thank you Marco) so I could install the packages I needed for my project. I also managed to fix pip using easy_install so pip also works for me now. The solution to fixing pip was: easy_install pip

like image 381
Olof H Avatar asked Nov 10 '15 19:11

Olof H


People also ask

Why is pip not working in CMD?

A “pip: command not found” error occurs when you fail to properly install the package installer for Python (pip) needed to run Python on your computer. To fix it, you will either need to re-install Python and check the box to add Python to your PATH or install pip on your command line.

How do you unfreeze pip?

You just need to delete the venv folder and initialize new one.

How do I run pip from command prompt?

Step 1: Download the get-pip.py (https://bootstrap.pypa.io/get-pip.py) file and store it in the same directory as python is installed. Step 2: Change the current path of the directory in the command line to the path of the directory where the above file exists. Step 4: Now wait through the installation process. Voila!

What to do if command prompt is stuck?

Press Ctrl + Shift + Esc to open the Task Manager. Click the File tab in the top-left corner and select Run new task. Type CMD and then check the Create this task with administrative privileges box. Finally, click OK to open an elevated Command prompt.


1 Answers

I had exactly the same problem here (Windows 10.0.10240). After typing just "pip" and hitting enter, nothing else happened on the console. This problem was affecting including other .exe compiled python related scripts like mezzanine-project.exe.

The antivirus AVAST was the culprit (in my case) !!!

After disabling AVAST files module (or uninstalling AVAST) pip started working again.

like image 176
Márcio Moreira Avatar answered Oct 24 '22 07:10

Márcio Moreira