[YOLOV5 environment construction]--error: module 'cv2' has no attribute 'gapi wip_ gst GStreamerPipeline'

Error: module 'cv2' has no attribute 'gapi wip_ gst GStreamerPipeline'
In this case, the opencv version is too high, just lower the version, but pay attention, the opencv version required by YOLO is opencv-python>=4.1.2

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

Guess you like

Origin blog.csdn.net/weixin_47665864/article/details/128915433