2016-03-03 198 views
0

我想在我的windows7上安裝ibm_db,但我得到了下面的錯誤,我有另一個2008 R2盒子,並且沒有安裝它的問題。使用pip安裝模塊時出錯

命令:C:\ Python27 \腳本> 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 \腳本> 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> 

回答

0

最後發現問題,我的系統通過代理服務器傳遞所有請求,代理服務器有一些證書問題,這就是我得到無效證書錯誤的原因。

刪除代理服務器並解決問題。