I install python package as usual while specify a pip source, yet the behaviour is out of expectation.
While on Windows the command python -m pip install pip==23.3.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
runs quickly, I encountered issues with it on WSL. To rule out network bandwidth as the cause, I cloned a Git repository, which performed at normal speed. Additionally, I confirmed that both echo $http_proxy
and echo $https_proxy
return empty values.
I have reviewed relevant issues on GitHub:
- Issue 4020
- Issue 4901
Steps I have taken so far:
- Upgraded from WSL1 to WSL2.(not working)
- Upgraded from Ubuntu 22.04 to Ubuntu 23.10. (not working)
- Edited
C:UsersYOURUSER.wslconfig
. (not working) - Reinstalled Conda.(not working)
- Tried using a mobile hotspot instead of Wi-Fi. (This worked, and
pip install pip==23.3.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
was fast. However, I need to resolve this issue for my Wi-Fi setup.)
(base) czfzdxx@czfzdxx:~$ hostnamectl
Static hostname: czfzdxx
Icon name: computer-container
Chassis: container ☐
Machine ID: xxx
Boot ID: xxx
Virtualization: wsl
Operating System: Ubuntu 23.10
Kernel: Linux 5.15.146.1-microsoft-standard-WSL2
Architecture: x86-64