'"pip3 list" not showing any output on terminal when using WSL
Tried to do a pip3 install virtualenv and found that there are no outputs and have left the terminal to run for quite some time. Have to do a manual interruption using Ctrl+C. Tried other commands which are pip-related, such as pip3 list and it also does not show any outputs.
terminal showing pip3 list command
Have tried to do a clean pip3 reinstallation by following https://askubuntu.com/questions/1180940/how-do-i-perform-a-full-reinstallation-of-pip-and-pip3. Still the result is the same.
May I know how to resolve this issue? Should I make a new clean version of WSL VM?
Solution 1:[1]
NotTheDro01ds comment is correct:
pip breaks if a DISPLAY variable is set and the XServer is not running.
- Solution 1: start the XServer
- Solution 2: remove the
DISPLAYvariable
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | nopanic |
