【发布时间】:2018-07-24 14:38:16
【问题描述】:
我正在尝试为 python 2.7.8 安装模块 pip,即 arcGIS 为您安装的模块。
我正在使用引导方法安装 pip,当我使用命令提示符运行 get-pip.py 时遇到错误。
我收到以下错误:
Warning (from warnings module): File
"c:\users\vlaw\appdata\local\temp\tmpzamnrk\pip.zip\pip\_vendor\requests\packages\urllib3\util\ssl_.py",
line 122 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/security.html#insecureplatformwarning.
Could not fetch URL https://pypi.python.org/simple/pip/: There was a
problem confirming the ssl certificate: [Errno 1] _ssl.c:510:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
verify failed - skipping Requirement already up-to-date: pip in
c:\esripyfldr\arcgis10.3 Collecting setuptools
Warning (from warnings module): File
"c:\users\vlaw\appdata\local\temp\tmpzamnrk\pip.zip\pip\_vendor\requests\packages\urllib3\util\ssl_.py",
line 122 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/security.html#insecureplatformwarning.
Could not fetch URL https://pypi.python.org/simple/setuptools/: There
was a problem confirming the ssl certificate: [Errno 1] _ssl.c:510:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate
verify failed - skipping [31m Could not find a version that
satisfies the requirement setuptools (from versions: )
我正在使用我公司提供的互联网。你认为防火墙是它给我错误的原因吗?
【问题讨论】:
-
你为什么用2.7版本?使用它有什么特定目的吗?您可以使用 3.0 以后的版本。它默认安装了 pip 。所以不会有任何问题。
-
我的python是由ArcGIS软件安装的。 Python 2.7.8 是唯一与该软件兼容的版本。身份证。