|
我是Python的新手,并尝试在Windows 7上pip install linkchecker。一些注意事项:
• pip安装失败,无论封装。例如,pip install scrapy也会导致SSL错误。
• Python 3.4.1的Vanilla安装包括pip 1.5.6。我尝试做的第一件事是安装linkchecker。Python 2.7已经安装,它随ArcGIS一起提供。> pip search linkchecker作品。也许这是因为pip搜索不会验证网站的SSL证书。
• 我在公司网络中,但我们没有通过代理来访问互联网。
• 每台公司计算机(包括我的计算机)都有一个受信任的根证书颁发机构,其使用原因有多种,包括启用监控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
复制代码
|
|