Python之使用pip安裝三方庫Error:Could not find a version that satisfies the requirement (from versions: none),No matching distribution found for


  出現多次使用pip安裝包時提示以下報錯:

ERROR: Could not find a version that satisfies the requirement <package> (from versions: none)
ERROR: No matching distribution found for <package>

 看提示信息說是木有匹配的包版本,那既然這樣就指定安裝的Python的三方包的版本,但是也不行,那說明可能不是包版本問題。

網上查了下說有可能是網絡問題,於是替換使用國內的鏡像源來加速:

  pip install  <package> -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

  --trusted-host pypi.douban.com的作用是獲得ssl的認證

執行命令后,python包安裝成功

  


免責聲明!

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



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