cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘错误解决方法

import albumentations as A

报错:

cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline

解决方法:

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

网友的方法是卸载 opencv-contrib-python

uninstall opencv-contrib-python

AttributeError: module ‘cv2‘ has no attribute ‘gapi_wip_gst_GStreamerPipeline‘_killvirus007的博客-CSDN博客

partially initialized module 'cv2' has no attribute '_registerMatType' (most likely due to a circular import)

解决方法,也是升级一下opencv-python就可以了。

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

猜你喜欢

转载自blog.csdn.net/jacke121/article/details/126666893