【发布时间】:2015-01-15 23:37:05
【问题描述】:
相当新的用户,但对命令行/python有基本的了解。尝试通过 windows 8 powershell 安装 pip 时收到以下错误消息:
Cannot fetch index base URL https://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement pip
Cleaning up...
No distributions at all found for pip
Storing debug log for failure in C:\Users\xxxx\pip\pip.log
类似问题的其他实例似乎建议与代理有关,然后是一些更详细的 linux 说明。我不熟悉“代理”,但如果它是相关的,我在 chrome 中有一个 VPN 扩展。有人可以用简单的初学者语言建议为什么我会收到此错误消息/解决方法和命令提示行是什么?
欣赏
错误日志内容:
get-pip.py run on 11/18/14 03:27:33
Downloading/unpacking pip
Getting page https://pypi.python.org/simple/pip/
Could not fetch URL https://pypi.python.org/simple/pip/: connection error: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip
Getting page https://pypi.python.org/simple/
Could not fetch URL https://pypi.python.org/simple/: connection error: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Will skip URL https://pypi.python.org/simple/ when looking for download links for pip
Cannot fetch index base URL https://pypi.python.org/simple/
URLs to search for versions for pip:
* https://pypi.python.org/simple/pip/
Getting page https://pypi.python.org/simple/pip/
Could not fetch URL https://pypi.python.org/simple/pip/: connection error: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
Will skip URL https://pypi.python.org/simple/pip/ when looking for download links for pip
Could not find any downloads that satisfy the requirement pip
Cleaning up...
Removing temporary dir c:\users\xxxx\appdata\local\temp\pip_build_xxxx...
No distributions at all found for pip
Exception information:
Traceback (most recent call last):
File "c:\users\xxxx\appdata\local\temp\tmpb1cvmx\pip.zip\pip\basecommand.py", line 122, in main
status = self.run(options, args)
File "c:\users\xxxx\appdata\local\temp\tmpb1cvmx\pip.zip\pip\commands\install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "c:\users\xxxx\appdata\local\temp\tmpb1cvmx\pip.zip\pip\req.py", line 1177, in prepare_files
url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
File "c:\users\xxxx\appdata\local\temp\tmpb1cvmx\pip.zip\pip\index.py", line 277, in find_requirement
raise DistributionNotFound('No distributions at all found for %s' % req)
DistributionNotFound: No distributions at all found for pip
【问题讨论】:
-
检查您的互联网连接。您可以在浏览器中打开pypi.python.org/simple 吗?添加指向您发现但不理解的类似问题的链接。
-
谢谢,我可以 - 它似乎是一个链接列表
-
C:\Users\xxxx\pip\pip.log 的内容是什么?
-
添加到初始问题(如果格式不好,请见谅)
标签: python powershell pip pypi