python 使用國內鏡像下載插件及報錯Could not fetch URL https://pypi.org/simple/pywinauto/: There was a problem co解決方法


現在使用的是豆瓣的鏡像下載的pandas插件 

pip3 install --index-url https://pypi.douban.com/simple pandas


國內的其他鏡像源
清華大學 https://pypi.tuna.tsinghua.edu.cn/simple/
阿里雲 http://mirrors.aliyun.com/pypi/simple/
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/
中國科學技術大學 http://pypi.mirrors.ustc.edu.cn/simple/

 

原文鏈接:https://blog.csdn.net/yanyanwenmeng/article/details/94222284

---------------------------------

報錯Could not fetch URL https://pypi.org/simple/pywinauto/: There was a problem co解決方法

參考:https://blog.csdn.net/abracadabraa/article/details/103798322

pip安裝一個第三方的庫,就一直報錯: Could not fetch URL https://pypi.org/simple/xrld/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘pypi.org’, port=443): Max retries exceeded with url: /simple/xrld/ (Caused by SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:833)’),)) - skipping

研究了好久只知道是證書的錯誤~按照度娘的指導嘗試了如下方案:
1.第一種嘗試方式:直接下載get-pip.py文件,執行命令python get-pip.py 結果是:失敗
2.第二種嘗試方式:加上–trusted-host 執行 pip install xrld -i https://pypi.org/simple --trusted-host pypi.org 結果是:失敗
3.第三種嘗試:發現是url的來源的問題,換成了國內的pip源就可以正常安裝了,我使用的是:pip install pywinauto -i http://pypi.douban.com/simple --trusted-host pypi.douban.com,結果:Duang!Duang!Duang~成功

1)http://mirrors.aliyun.com/pypi/simple/ 阿里雲
2)https://pypi.mirrors.ustc.edu.cn/simple/ 中國科技大學
3) http://pypi.douban.com/simple/ 豆瓣
4) https://pypi.tuna.tsinghua.edu.cn/simple/ 清華大學
5) http://pypi.mirrors.ustc.edu.cn/simple/ 中國科學技術大學

 
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM