簡體   English   中英

使用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>

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>

終於找到了問題,我的系統正在通過代理服務器傳遞所有請求,並且代理服務器存在一些證書問題,這就是為什么我收到無效證書錯誤的原因。

刪除了代理服務器,問題已解決。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM