python-2.7 - AIX系统无法安装pip

标签 python-2.7 pip aix

我正在尝试在 AIX VM 上安装 python pip,但是当我尝试时,出现了很多错误。谁能帮我解决这个问题。

python get-pip.py

/tmp/tmpqZBZXW/pip.zip/pip/vendor/requests/packages/urllib3/util/ssl.py:315:SNIMissingWarning:已发出 HTTPS 请求,但 SNI (主题名称指示) TLS 扩展在此平台上不可用。这可能会导致服务器提供不正确的 TLS 证书,从而导致验证失败。欲了解更多信息,请参阅https://urllib3.readthedocs.org/en/latest/security.html#snimissingwarning 。 /tmp/tmpqZBZXW/pip.zip/pip/vendor/requests/packages/urllib3/util/ssl.py:120:InsecurePlatformWarning:真正的 SSLContext 对象不可用。这会阻止 urllib3 正确配置 SSL,并可能导致某些 SSL 连接失败。欲了解更多信息,请参阅https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning 。 要求已经是最新的:pip in/opt/freeware/lib/python2.7/site-packages

最佳答案

您问题中的第一个网址解释得很清楚。你有一个旧的 python 链接到一个旧的 openssl。

https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning

Certain Python platforms (specifically, versions of Python earlier than 2.7.9) have restrictions in their ssl module that limit the configuration that urllib3 can apply. In particular, this can cause HTTPS requests that would succeed on more featureful platforms to fail, and can cause certain security features to be unavailable.

If you encounter this warning, it is strongly recommended you:

  • 升级到较新的 Python 版本
  • 使用 pip 升级 ndg-httpsclient
  • 安装--升级 ndg-httpsclient
  • 按照 OpenSSL/PyOpenSSL 部分中的说明使用 pyOpenSSL

关于python-2.7 - AIX系统无法安装pip,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36306403/

相关文章:

python - 使用 python 验证一个 shapefile 是一个 shapefile (fiona, ogr)

python - "if possible, do it"的 pythonic 方式是什么?

python - 无法在Python3、Ubuntu14.04中使用pip安装NumPy

shell - 如何在shell脚本中使日期/时间可读且可计算?

unix - 使用 ed 添加文本到文件中特定行的末尾

python - django runscript 找不到脚本 'myscriptnamehere.py' 的(有效)模块

python - 无法从 scipy.stats.stats 导入 ss 函数

ubuntu - 使用 'pip install celery' 在 ubuntu 上安装 celery 时出错

python - 有没有办法以编程方式确认 python 包版本满足需求说明符?

Linux : remove duplicate line