python pip 安装错误“无法获取基本索引 URL”

问题描述 投票:0回答:1

相当新的用户,但对命令行/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
python powershell pip pypi
1个回答
0
投票

问题是捆绑的 SSL 证书似乎已经过时。 检查您是否遵循最新安装说明并更新您的 openssl 安装。

或者尝试此问题中概述的解决方案:https://stackoverflow.com/a/20874741/2898712

© www.soinside.com 2019 - 2024. All rights reserved.