首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >pip安装失败,并显示“连接错误:[SSL: CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:598)”。

pip安装失败,并显示“连接错误:[SSL: CERTIFICATE_VERIFY_FAILED]证书验证失败(_ssl.c:598)”。
EN

Stack Overflow用户
提问于 2014-09-23 03:25:20
回答 49查看 1.2M关注 0票数 532

我是Python的新手,正在尝试在Windows7上使用> pip install linkchecker

无论软件包是什么,

  • pip安装都会失败。例如,> pip install scrapy也会导致SSL错误。Python3.4.1的
  • Vanilla install包含pip 1.5.6。我尝试做的第一件事就是安装链接检查器。Python2.7已经安装好了,它附带了ArcGIS。在我安装3.4.1.
  • > pip search linkchecker works之前,无法从命令行使用pythonpip。也许这是因为pip搜索不会在公司网络中验证站点的SSL am,但我们不会通过代理来访问Internet.
  • Each公司的计算机(包括我的计算机)具有受信任的根证书颁发机构,该机构用于各种原因,包括启用对https://google.com流量的监控。我不确定这是否与此有关。

以下是运行pip install linkchecker后我的pip.log的内容

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 linkchecker
Cleaning up...
  Removing temporary dir C:\Users\jcook\AppData\Local\Temp\pip_build_jcook...
No distributions at all found for linkchecker
Exception information:
Traceback (most recent call last):
  File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
    status = self.run(options, args)
  File "C:\Python34\lib\site-packages\pip\commands\install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "C:\Python34\lib\site-packages\pip\req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
  File "C:\Python34\lib\site-packages\pip\index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
pip.exceptions.DistributionNotFound: No distributions at all found for linkchecker
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/25981703

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档