I'm relatively new to image analysis and I want to import the CV2 package. When I run the code import cv2
I receive the following error code:
ImportError: libGL.so.1: cannot open shared object file: No such file or directory
I've looked at answers like this: ImportError: libGL.so.1: cannot open shared object file: No such file or directory
But when I do, the solutions doesn't work For example one solution suggested to run apt-get update && apt-get install -y python3-opencv
, but again, when I do, the code does not run. I already tried to uninstall the packages but still the same error.
Someone know a solution?