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?
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>
)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With