python安裝的時候報SSL連接錯誤的解決辦法


Collecting xlwt
  Could not fetch URL https://pypi.python.org/simple/xlwt/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) - skipping
  Could not find a version that satisfies the requirement xlwt (from versions: )

No matching distribution found for xlwt


是因為低版本的python 沒有使用SSL連接, 我們在安裝的請求參數添加如下選項  --trusted-host pypi.python.org ,就可以安裝成功




免責聲明!

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



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