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

时间:2025-05-07 21:25:46

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

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

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


pip install 库包名 -i /simple/ --trusted-host

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