python - pip install出现下面图中的报错 什么原因?
巴扎黑
巴扎黑 2017-04-18 10:34:28
0
3
551

这是什么错误?如何解决?求大神指导

巴扎黑
巴扎黑

reply all(3)
刘奇

https cannot establish a connection. There are many possible reasons for this. You can change to the domestic pip source and download again.

黄舟

Domain name resolution failed. Can you wget https://pypi.python.org/ to see if you can connect?

It is not recommended to use domestic HTTP mirrors because firstly, they often encounter situations where updates are not timely and packages are missing. Secondly, if HTTPS is not used, it may be hijacked by the operator, or there may be problems (incomplete, etc.) obtained from the operator's cache. Or more serious, cache poisoning) packages (the caches of the operators I have seen are basically implemented in the same bad way, with redirection, loss of header information, no verification, and the cache key is just the file name). After all, pip does not verify packages.

大家讲道理

pip install requests -i https://pypi.douban.com/simple/

Use this, it will definitely work

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!