pip speed is too slow to solve (using Tsinghua mirror)

pythonThe package management tool pipis 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 pipdownload, temporarily use the mirror (command line):

pip install <包名称> -i https://pypi.tuna.tsinghua.edu.cn/simple

Comfortable

Permanent method

Open the command line and execute:

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

Just ask if you are happy

1.1MB/s 2.2MB/s 6.8MB/s

PS I searched the Internet for NNN articles all say that they createpip.inifiles...

Guess you like

Origin blog.csdn.net/write_1m_lines/article/details/107299065