An article takes you to solve the problem of particularly slow Python pip installation library

Since Python's domestic network is not very stable, when we download the libraries we need, the speed is very slow, and finally it is very likely to cause overtime download.

This is where we can choose a domestic mirror to download acceleration

pip install 包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

I chose Doubanyuan here,

--trusted-host pypi.douban.com This is to obtain ssl certificate authentication, otherwise an error will be reported

As you can see, this speed is almost impossible.

Insert picture description here

Guess you like

Origin blog.csdn.net/nanhuaibeian/article/details/108564211