module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘

import  cv2

运行报错: module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline'

最好的办法就是:

先卸载:pip uninstall opencv-python

再安装:pip install opencv-python install "opencv-python-headless<4.3"

你可能感兴趣的:(opencv计算机视觉,人工智能)