出現多次使用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包安裝成功