【问题标题】:Installing PIP on Windows 10 but getting "No matching distribution found for pip<21.0"在 Windows 10 上安装 PIP,但得到“没有为 pip<21.0 找到匹配的发行版”
【发布时间】:2021-08-02 04:41:19
【问题描述】:

我正在运行一些似乎使用 python 2.7.5 版本的脚本,我已经在我的 Windows 机器上安装了这些脚本,但是在运行它时,我看到以下错误消息

pywin32 has not been installed for python 2.7.5

基于this link,看来我需要安装pip

然后我按照Python 2 ≤ 2.7.8 and Python 3 ≤ 3.3 的步骤安装pip 提到了here,但是在使用这个脚本时,我看到了以下错误

ERROR: This script does not work on Python 2.7 The minimum supported Python version is 3.6. Please use https://bootstrap.pypa.io/pip/2.7/get-pip.py instead

然后我改用https://bootstrap.pypa.io/pip/2.7/get-pip.py 脚本并在运行python get-pip.py 时看到以下内容

WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)",)': /simple/pip/

C:\usr\appdata\local\temp\tmpuwu19m\pip.zip\pip\_vendor\urllib3\util\ssl_.py:164: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

ERROR: Could not find a version that satisfies the requirement pip<21.0 (from versions: none)
ERROR: No matching distribution found for pip<21.0

【问题讨论】:

    标签: python windows python-2.7 pip


    【解决方案1】:

    作为临时解决方案,您可以使用“python -m pip install”

    从长远来看,我建议您使用 pip 重新安装 python 或尝试按照这些步骤仅安装 pip

    https://phoenixnap.com/kb/install-pip-windows

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-27
      • 2016-04-29
      • 2018-02-08
      • 2018-10-05
      • 2018-09-19
      • 2020-12-23
      • 2021-10-16
      • 1970-01-01
      相关资源
      最近更新 更多