【问题标题】:Error in installing module using pip使用 pip 安装模块时出错
【发布时间】:2016-06-16 10:20:15
【问题描述】:

我正在尝试在我的 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>

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

【问题讨论】:

    标签: python-2.7 windows-7 db2 pip easy-install


    【解决方案1】:

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

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

    【讨论】: