使用pip安装模块时出错

时间:2016-03-03 07:57:21

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

我正在尝试在我的windows7机器上安装ibm_db,但是我收到了以下错误,我有另一个2008 R2框并且没有安装问题。

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

错误:

$query2 = 'SELECT * FROM booking WHERE status=1 AND userid= '.$user_ID.'';
$result2 = mysql_query($query2);
$data2 = mysql_fetch_object($result2);
echo $data2->destination;


$query3 = 'UPDATE booking SET source=$data2->destination WHERE status=0 AND 
userid='.$user_ID.'';
$result3 = mysql_query($query3);

Command2: C:\ Python27 \ Scripts> pip2.7.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>

1 个答案:

答案 0 :(得分:0)

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

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