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

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

问题描述

我正在尝试为 python 2.7.8 安装模块 pip,这是 arcGIS 为您安装的模块.

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

我正在使用安装 pip 的引导程序方法,当我使用命令提示符运行 get-pip.py 时遇到错误.

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

我收到以下错误:

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: )

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

I am using internet provided by my company. 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天全站免登陆