在程序中需要导入cv2 库

import cv2

因此进行安装时,使用以下命令安装,出现问题

pip install cv2

问题:
ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)
ERROR: No matching distribution found for cv2

解决方法:

pip install opencv-python

过程截图如下:
在这里插入图片描述

Logo

CSDN联合极客时间,共同打造面向开发者的精品内容学习社区,助力成长!

更多推荐