Fix ModuleNotFoundError: No module named 'cv2' (OpenCV)
You import cv2 but the pip package is opencv-python — and there are four variants. Pick the right one, and preempt the libGL.so.1 error on servers with headless.
1 article
You import cv2 but the pip package is opencv-python — and there are four variants. Pick the right one, and preempt the libGL.so.1 error on servers with headless.