ERROR: Could not find a version that satisfies the requirement XXX解决方法

出现问题:ERROR: Could not find a version that satisfies the requirement XXX解决方法

找了很久终于找到能解决这种报错的方法了。

直接选用pip源并且信任它的来源就可以解决这种问题。


pip install 库包名 -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

这里将pip源换成清华源、阿里源等都适用。
     


版权声明:本文为qq_45758854原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。