【发布时间】:2020-01-12 08:04:30
【问题描述】:
我正在尝试为python 2.7.3安装pip(不幸的是我没有选择我必须使用的python版本)和运行get-pip.py时(从官方网站下载:@987654321 @) 使用 python 2.7.3 我收到此消息:
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
【问题讨论】:
-
为什么一定要用这个版本? Python 2.* 已弃用。
-
@Guy 我必须使用这个特定版本,因为我正在为特定 DCC 创建工具,该工具提供自己的 python 解释器(即 python 2.7.3),用一堆自定义的东西编译,并且这些工具需要是可移植的,而不必每次都重新编译解释器(因为它默认附带大量自定义内容)
-
@Martin Python 2.7.9 目前是使用 PyPI 的最低版本。如果你真的需要 2.7.3,你必须手动安装
pip(而不是从 PyPI),你必须手动下载所有轮子来安装pip。下载setuptools和pip的源代码,解压并运行python setup.py install