【发布时间】: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