New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'pip install' is extremely slow in WSL2 #6643
Comments
You may be a variant of the slow network in WSL2 issue |
Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
This is not due to a slow network issue. It takes 5-10 minutes to get past something, then the installations continue at a normal pace. Download speeds are fine once the installation of packages starts. See On WSL2 |
Not 5-10 mins for me, but still significant waiting time. I installed Windows 11 today, and am facing this issue. Can someone please take a look? Also, it's not the network issue, it just gets stuck for a couple of mins, and then starts installing with normal speed. Please note that I'm using zsh (oh-my-zsh config) + anaconda for env (if this matters). |
thanks, solve my problem |
@ppaanngggg How did you solve it? That Stack Overflow page does not offer a solution. |
I use this command |
IMHO, this is a great temporary fix, but not a good solution and the issue should be reopened. I don't really understand the problems with |
I dont know, but it works. I think it is a new problem after WSLg update for WSL2. |
Where can I find more about the |
This command sets the environment variable |
If its any help for this topic. for example.... from desktop login..
after exiting this windows terminal, python3-pip hangs super bad. Notably when invoking 'pip install' |
Was facing the same issue. However, I have XServer set up with XLaunch because I often use graphical apps. As pointed out by @ceagan , if this xserver host is running on windows, things work as fast as they should but when it is disabled, pip waits a long time for a timeout. I recommend setting up XLaunch because you might need it at some point in the future anyway. |
I've seen mixed reviews on this but i moved my project from the C mount |
Instead of adding |
Isn't updating .bash_aliases enough?
|
WSL2 is much slower than WSL1 when accessing files on the windows filesystem, according to what mentioned here |
Still facing this issue on latest version of WSL2. I have max network speed in WSL2( |
I found that my installation was very slow, too, but using the
This takes quite a long time, at least when using |
Environment
WSL2: Linux version 5.4.72-microsoft-standard-WSL2 (oe-user@oe-host) (gcc version 8.2.0 (GCC)) #1 SMP Wed Oct 28 23:40:43 UTC 2020
Steps to reproduce
git clone https://github.com/NVlabs/stylegan2
cd stylegan2
docker build . -t stylegan2
Expected behavior
Pip install is very fast on wsl2: Download starts immediately and is very fast
Actual behavior
Pip during docker build is very slow on wsl2 - the install hangs when downloading scipy for ~5 to 10 minutes. Also noticed similar for google drive downloads.
The text was updated successfully, but these errors were encountered: