天天看點

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安裝三方庫Error:Could not find a version that satisfies the requirement (from versions: none),No matching distribution found for

 看提示資訊說是木有比對的包版本,那既然這樣就制定安裝的Python的三方包的版本,但是也不行,那說明可能不是包版本問題。

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

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

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

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

執行指令後,python包安裝成功

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