Pip-Installation schlägt mit "Verbindungsfehler fehl: [SSL: CERTIFICATE_VERIFY_FAILED] Zertifikat überprüfen fehlgeschlagen (_ssl.c: 598)"

Ich bin sehr neu in Python und versuche zu > pip install linkchecker auf Windows 7. Einige Hinweise:

  • pip installieren, wird scheitern, egal das Paket. Zum Beispiel > pip install scrapy führt auch in der SSL-Fehler.
  • Vanilla installieren von Python 3.4.1 enthalten pip 1.5.6. Das erste, was ich versucht habe war linkchecker installieren. Python 2.7 bereits installiert war, kam es mit ArcGIS. python und pip wurden nicht von der Kommandozeile, bis ich installiert 3.4.1.
  • > pip search linkchecker funktioniert. Vielleicht, weil pip eine Suche ist nicht, ob die Website SSL-Zertifikat.
  • Ich bin in einem Firmennetzwerk, aber wir gehen nicht durch einen proxy um ins Internet zu kommen.
  • Jede Firma computer (einschließlich mir) hat eine Vertrauenswürdige Stammzertifizierungsstelle, die verwendet wird, aus verschiedenen Gründen, einschließlich was die überwachung von TLS-Verkehr zu https://google.com. Nicht sicher, ob das irgendetwas damit zu tun hat.

Hier der Inhalt meiner pip.melden Sie nach dem ausführen 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 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
Kommentar zu dem Problem
Sind Sie mit Python 3.4.2? Kommentarautor: Cody Piersall
3.4.1. Habe eine neue version nur kommen, dass diese Adressen? Kommentarautor: Jeremy Cook
Ganz im Gegenteil! Python 3.4.1 und früher nicht tun Zertifikat Validierung standardmäßig. Wenn Sie wurden mit Hilfe von Python 3.4.2, ich hätte gedacht, dass war das problem. (Siehe Problem 21013 und diesem thread auf der mailing-Liste. Beachten Sie, dass dies der Beginn einer ziemlich langen thread.) Sorry, ich konnte nicht wirklich helfen! Kommentarautor: Cody Piersall
Überprüfen Sie, ob fiddler geöffnet und schließen Sie es. Fiddler versuchen Pause SSL und das macht piep, wenn ich in der Nähe fiddler pip funktioniert bei mir. Wenn ich in der Nähe meiner fiddler alles ok Kommentarautor: José Barbosa

InformationsquelleAutor der Frage Jeremy Cook | 2014-09-22

Schreibe einen Kommentar