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"

猜你喜欢

转载自blog.csdn.net/m0_72662900/article/details/127828745