opencv-python의 버전을 다르게 설치해주면 된다.
pip install opencv-python==4.5.5.64
하지만 난 이어서 ImportError: libGL.so.1: cannot open shared object file: No such file or directory 라는 에러도 생겼는데 ..
apt-get update && apt-get install libgl1
libGL.so.1이 포함되어 있는 libl1 패키지를 설치해주면 된다.
참고
AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a circu
This happened out of the blue, I was able to import cv2 but now I get 'AttributeError: partially initialized module 'cv2' has no attribute 'gapi_wip_gst_GStreamerPipeline' (most likely due to a cir...
stackoverflow.com
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
I am trying to run cv2, but when I try to import it, I get the following error: ImportError: libGL.so.1: cannot open shared object file: No such file or directory The suggested solution online is
stackoverflow.com