ฉันยังใหม่กับ Python และพยายามใช้> pip install linkcheckerกับ Windows 7 หมายเหตุบางประการ:
- การติดตั้ง pip ล้มเหลวไม่ว่าในแพ็คเกจใด ตัวอย่างเช่น> pip install scrapyส่งผลให้เกิดข้อผิดพลาด SSL
- การติดตั้งวานิลลาของ Python 3.4.1 รวม pip 1.5.6 สิ่งแรกที่ฉันพยายามทำคือติดตั้ง linkchecker Python 2.7 ได้รับการติดตั้งแล้วมันมาพร้อมกับ ArcGIS pythonและpipไม่สามารถใช้งานได้จากบรรทัดคำสั่งจนกว่าฉันจะติดตั้ง 3.4.1
- > pip search linkcheckerโรงงาน อาจเป็นเพราะการค้นหา pip ไม่ได้ตรวจสอบใบรับรอง SSL ของเว็บไซต์
- ฉันอยู่ในเครือข่าย บริษัท แต่เราไม่ผ่านพร็อกซีเพื่อเข้าถึงอินเทอร์เน็ต
- คอมพิวเตอร์ของ บริษัท แต่ละคน (รวมทั้งเหมือง) มี Trusted ใบรับรองรากที่ใช้สำหรับเหตุผลต่าง ๆ รวมทั้งช่วยให้การตรวจสอบการจราจร TLS เพื่อhttps://google.com ไม่แน่ใจว่ามีอะไรเกี่ยวข้องหรือไม่
นี่คือเนื้อหาของpip.logของฉันหลังจากทำงาน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

