PIP安装失败,“连接错误:[SSL:证书_验证_失败]证书验证失败(_ssl.c:598)”

PIP安装失败,“连接错误:[SSL:证书_验证_失败]证书验证失败(_ssl.c:598)”

我对Python非常陌生,并试图> pip install linkchecker在Windows 7.一些注意事项:

  • 无论软件包如何,PIP安装都失败了。例如,

    > pip install scrapy

    还会导致SSL错误。
  • Python3.4.1的普通安装包含pip1.5.6。我要做的第一件事就是安装链接检查器。Python2.7已经安装好了,它附带了ArcGIS。

    python

    pip

    在安装3.4.1之前,命令行中无法使用。
  • > pip search linkchecker

    起作用了。这可能是因为PIP搜索不验证站点的SSL证书。
  • 我在一个公司的网络,但我们不通过代理访问互联网。
  • 每台公司的计算机(包括我的计算机)都有一个可信的根证书颁发机构,由于各种原因使用它,包括允许监视TLS通信量到

    https://google.com

    ..不知道这和这事有什么关系。

这是我的管道日志跑后pip install linkchecker:

Downloading/unpacking linkchecker  Getting page https://pypi.python.org/simple/linkchecker/
  Could not fetch URL https://pypi.python.org/simple/linkchecker/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate 
  verify failed (_ssl.c:598)
  Will skip URL https://pypi.python.org/simple/linkchecker/ when looking for download links for linkchecker  Getting page https:
  //pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/: connection error: HTTPSConnectionPool(host='pypi.python.org', port=443): 
  Max retries exceeded with url: /simple/ (Caused by <class 'http.client.CannotSendRequest'>: Request-sent)
  Will skip URL https://pypi.python.org/simple/ when looking for download links for linkchecker  Cannot fetch index base 
  URL https://pypi.python.org/simple/
  URLs to search for versions for linkchecker:
  * https://pypi.python.org/simple/linkchecker/
  Getting page https://pypi.python.org/simple/linkchecker/
  Could not fetch URL https://pypi.python.org/simple/linkchecker/: connection error: [SSL: CERTIFICATE_VERIFY_FAILED] 
  certificate verify failed (_ssl.c:598)
  Will skip URL https://pypi.python.org/simple/linkchecker/ when looking for download links for linkchecker 
   Could not find any downloads that satisfy the requirement linkcheckerCleaning up...
摇曳的蔷薇
浏览 5228回答 3
3回答
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python