pip install xxx Could not fetch URL https://pypi.org/simple/pip/


Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirmingthe ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)'),)) - skipping

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

解決辦法:

1、新建一個pip.ini文件

[global]

index-url=http://mirrors.aliyun.com/pypi/simple/

[install]

trusted-host=mirrors.aliyun.com

2、將pip.ini文件添加到環境變量中。


免責聲明!

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



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