Hi,
cv2 cannot be imported in Python because there are 2 library files missing for the Docker image you provided above.
> import cv2Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/conda/lib/python3.8/site-packages/cv2/__init__.py", line 5, in <module>
from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directoryThe following fixes the issue:
apt-get update
apt-get install -y libgl1-mesa-dev
apt-get install -y libglib2.0-0
Can you include the 3 lines above in the Dockerfile?
Thanks