ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)

在终端输入:pip install cv2
出现错误提示:
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none )
ERROR: No matching distribution found for cv2

在这里插入图片描述

原因:
没有名为cv2的库,将命令改为:pip install opencv-python
在这里插入图片描述
安装成功!

如果还是有错误,将命令改为:pip install opencv-contrib-python

猜你喜欢

转载自blog.csdn.net/weixin_43737995/article/details/132030206