python
The package management tool pip
is too slow, and it often reports errors when downloading. You can use the Tsinghua mirror to replace the default download source. The following two methods can be used on any computer, the demo computer is Windows 10 版本1909
.
Temporary method
When using the pip
download, temporarily use the mirror (command line):
pip install <包名称> -i https://pypi.tuna.tsinghua.edu.cn/simple
Permanent method
Open the command line and execute:
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
1.1MB/s 2.2MB/s 6.8MB/s
PS I searched the Internet for NNN articles all say that they createpip.ini
files...