【YOLOV5环境搭建】--报错:module ‘cv2‘ has no attribute ‘gapi wip_ gst GStreamerPipeline‘

2024-01-17 17:09:42 浏览数 (3)

报错:module ‘cv2’ has no attribute ‘gapi wip_ gst GStreamerPipeline’ 这种情况是opencv版本过高,降一下版本就好了,但是要注意,YOLO要求的opencv版本opencv-python>=4.1.2

代码语言:javascript复制
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python==4.6.0.66

0 人点赞