在Windows上的python 2.7.8上安装pip [英] installing pip on python 2.7.8 on windows

查看:782
本文介绍了在Windows上的python 2.7.8上安装pip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将模块pip安装到arcGIS为您安装的python 2.7.8中.

I am trying to install the module pip to python 2.7.8 the one that arcGIS installs for you.

我正在执行pip的引导方法,并且使用cmd运行get-pip.py时遇到错误.

I am doing the bootstrap method of installing pip and I am running into an error when I run the get-pip.py with cmd.

我收到以下错误:

警告(来自警告模块):文件 "c:\ users \ vlaw \ appdata \ local \ temp \ tmpzamnrk \ pip.zip \ pip_vendor \ requests \ packages \ urllib3 \ util \ ssl_.py", 第122行InsecurePlatformWarning:并非真正的SSLContext对象 可用的.这会阻止urllib3正确配置SSL 并可能导致某些SSL连接失败.您可以升级到 较新版本的Python即可解决此问题.有关更多信息,请参见 https://urllib3.readthedocs.io/en/latest/security.html#不安全的平台警告. 无法获取URL 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

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

警告(来自警告模块):文件 "c:\ users \ vlaw \ appdata \ local \ temp \ tmpzamnrk \ pip.zip \ pip_vendor \ requests \ packages \ urllib3 \ util \ ssl_.py", 第122行InsecurePlatformWarning:并非真正的SSLContext对象 可用的.这会阻止urllib3正确配置SSL 并可能导致某些SSL连接失败.您可以升级到 较新版本的Python即可解决此问题.有关更多信息,请参见 https://urllib3.readthedocs.io/en/latest/security.html#不安全的平台警告. 无法获取URL https://pypi.python.org/simple/setuptools/:那里 确认ssl证书时出现问题:[Errno 1] _ssl.c:510: 错误:14090086:SSL例程:SSL3_GET_SERVER_CERTIFICATE:证书 验证失败-跳过[31m找不到版本 满足需求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: )

我正在使用公司的互联网.您认为防火墙是它给我错误的原因吗?

I am using my company internet. Do you think the firewall is the reason it's giving me the error?

推荐答案

您必须在防火墙内部设置代理,并在防火墙外部安装文件.

You have to set proxies as you are inside firewall and installing files form outside firewall.

Ubuntu :

export http_proxy="http://<<username>>:<<password>>@<<proxy server>>:<<proxy_port>>"
export https_proxy="https://<<username>>:<<password>>@<<proxy server>>:<<proxy_port>>"

Windows :

set HTTP_PROXY=http://<<username>>:<<password>>@<<proxy server>>:<<proxy_port>>
set HTTPS_PROXY=https://<<username>>:<<password>>@<<proxy server>>:<<proxy_port>>

这篇关于在Windows上的python 2.7.8上安装pip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆