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

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

pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python==4.6.0.66

猜你喜欢

转载自blog.csdn.net/weixin_47665864/article/details/128915433