怪我咯2017-04-18 10:36:28
https cannot establish a connection. There are many possible reasons for this. You can change to the domestic pip source and download again.
黄舟2017-04-18 10:36:28
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.
大家讲道理2017-04-18 10:36:28
pip install requests -i https://pypi.douban.com/simple/
Use this, it will definitely work