使用pip安装模块时出错

Error in installing module using pip

我正在尝试在我的 windows7 盒子上安装 ibm_db,但出现以下错误,我有另一个 2008 R2 盒子,安装没有问题。

命令:C:\Python27\Scripts>easy_install.exe ibm_db

错误:

C:\Python27\Scripts>easy_install.exe ibm_db

Searching for ibm-db
Reading https://pypi.python.org/simple/ibm_db/
    Download error on https://pypi.python.org/simple/ibm_db/: [SSL:CERTIFICATE_VERI
    FY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may   not be found!
Reading https://pypi.python.org/simple/ibm-db/
Download error on https://pypi.python.org/simple/ibm-db/: [SSL: CERTIFICATE_VERI
FY_FAILED] certificate verify failed (_ssl.c:590) -- Some packages may not be fo
und!
Couldn't find index page for 'ibm_db' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAIL
ED] certificate verify failed (_ssl.c:590) -- Some packages may not be found!
No local packages or download links found for ibm-db
    error: Could not find suitable distribution for Requirement.parse('ibm-db')
C:\Python27\Scripts>

命令 2:C:\Python27\Scripts>pip2.7.exe 安装 ibm_db

C:\Python27\Scripts>pip2.7.exe install ibm_db
Collecting ibm-db
Could not find a version that satisfies the requirement ibm-db (from versions:)
No matching distribution found for ibm-db
C:\Python27\Scripts>

终于找到了问题,我的系统通过代理服务器传递所有请求,而代理服务器有一些证书问题,这就是我收到无效证书错误的原因。

删除了代理服务器,问题已解决。