我正在尝试将模块pip安装到arcthon安装的python 2.7.8。
我正在使用安装pip的bootstrap方法,当我使用cmd运行get-pip.py时遇到错误。
我收到以下错误:
警告(来自警告模块):文件 “C:\用户\ vlaw \应用程序数据\本地\ TEMP \ tmpzamnrk \ pip.zip \ pip_vendor \请求\包\ urllib3 \ UTIL \ ssl_.py” 第122行InsecurePlatformWarning:不是真正的SSLContext对象 可用。这可以防止urllib3正确配置SSL 并可能导致某些SSL连接失败。你可以升级到 更新版本的Python来解决这个问题。有关更多信息,请参阅 https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning。 无法获取网址https://pypi.python.org/simple/pip/:有一个 确认ssl证书的问题:[Errno 1] _ssl.c:510: 错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书 验证失败 - 跳过要求已经是最新的:pip in c:\ esripyfldr \ arcgis10.3收集setuptools
警告(来自警告模块):文件 “C:\用户\ vlaw \应用程序数据\本地\ TEMP \ tmpzamnrk \ pip.zip \ pip_vendor \请求\包\ urllib3 \ UTIL \ ssl_.py” 第122行InsecurePlatformWarning:不是真正的SSLContext对象 可用。这可以防止urllib3正确配置SSL 并可能导致某些SSL连接失败。你可以升级到 更新版本的Python来解决这个问题。有关更多信息,请参阅 https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning。 无法获取网址https://pypi.python.org/simple/setuptools/:那里 是确认ssl证书的问题:[Errno 1] _ssl.c:510: 错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书 验证失败 - 跳过[31m无法找到该版本 满足要求setuptools(来自版本:)
我正在使用我公司的互联网。你认为防火墙是它给我错误的原因吗?
答案 0 :(得分:2)
您必须设置代理,因为您在防火墙内部并在防火墙外部安装文件。
<强> Ubuntu的强>:
export http_proxy="http://<<username>>:<<password>>@<<proxy server>>:<<proxy_port>>"
export https_proxy="https://<<username>>:<<password>>@<<proxy server>>:<<proxy_port>>"
<强>窗强>:
set HTTP_PROXY=http://<<username>>:<<password>>@<<proxy server>>:<<proxy_port>>
set HTTPS_PROXY=https://<<username>>:<<password>>@<<proxy server>>:<<proxy_port>>
答案 1 :(得分:0)
我认为你应该首先下载get-pip.py
然后运行python get-pip.py
。
如果这不起作用,请使用python get-pip.py --prefix=/usr/local/
。
希望这有帮助。