解决pip install安装依赖时报错“Python版本不相符”

ERROR: Ignored the following versions that require a different python version: 1.6.2 Requires-Python >=3.7,<3.10; 1.6.3 Requires-Python >=3.7,<3.10; 1.7.0 Requires-Python >=3.7,<3.10; 1.7.1 Requires-Python >=3.7,<3.10
ERROR: Could not find a version that satisfies the requirement opencv-python==4.7.0.72 (from versions: none)
ERROR: No matching distribution found for opencv-python==4.7.0.72

查到了个较好的解决方法,就是更新pip

python3 -m pip install –upgrade pip

更新一下,再进行pip安装就没有问题了。

仅记录~~

作者:Bricke

物联沃分享整理
物联沃-IOTWORD物联网 » 解决pip install安装依赖时报错“Python版本不相符”

发表回复