python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2

python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2

开始是报错ModuleNotFoundError: No module named ‘cv2’

python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2_第1张图片

点击安装cv2,安装未成功,查找相关资料,说是没有cv2的包,实际上需要安装的是一个叫opencv-python的包

安装opencv-python包,打开cmd输入:pip install opencv-python,等待安装完成

在这里插入图片描述

回到pycharm中,找到文件-设置-项目-python解释器,左上角有个+,点击进去

python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2_第2张图片

找到opencv-python,点击“install Package”,提示安装成功

接着再同样的找到cv2,安装就好了

python安装cv2出现如下错误:Could not find a version that satisfies the requirement cv2_第3张图片

你可能感兴趣的:(python,opencv,开发语言)