Error solutions to problems when installing the module pip

Before mounting module encountered pip encountered when given as follows: pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool (= Host ' files.pythonhosted.org ', Port = 443): the Read Timed OUT.

 

Tried several methods are not available, as follows:

modle (corresponding to the module name of the package)

1, set the timeout,
PIP-timeout = 100 --default the install -U modle

2, generally slow foreign mirror, the third source may be used to improve the speed:

pip install --index https://mirror.ustc.edu.cn/pypi/web/simple/  modle

3, pip install modle -i https://doubanio.com/simple (this is still quite workable)

 

 

Guess you like

Origin www.cnblogs.com/guopanpan/p/12004120.html