Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pip Install hangs

I currently have Python 3.5 on my Windows machine. I'm trying to install a Python package using the command "pip install" but as soon as I hit enter nothing happens. The action hangs for such a long time and when I try to exit the command line, it freezes. How do I get pip install to work?

like image 849
Waves Avatar asked Nov 25 '15 20:11

Waves


1 Answers

If you are you using WSL2, indeed it could be related to pip trying to connect to an XServer. If so, clearing the DISPLAY environment variable first before running it may help:

export DISPLAY=
pip install <packagename>

(Or, as a one-liner: DISPLAY= pip install <packagename>)

like image 68
Ben JW Avatar answered Sep 28 '22 09:09

Ben JW