Home  >  Q&A  >  body text

python - pip install出现下面图中的报错 什么原因?

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

巴扎黑巴扎黑2741 days ago554

reply all(3)I'll reply

  • 怪我咯

    怪我咯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.

    reply
    0
  • 黄舟

    黄舟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.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:36:28

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

    Use this, it will definitely work

    reply
    0
  • Cancelreply