Running cv2 on Amazon Linux

Tried import cv2 within python application, but it gives below error:

ImportError: cannot open shared object file: No such file or directory

It because of a C include file was missing. I tried to install libgl1-mesa-glx but, Amazon Linux throws no package named which can libgl1-mesa-glx be used.

Don't panic.

You should use yum to search for the package containing the missing file.

$ sudo yum provides */GL/gl.h

So now you can see the package name is mesa-libGL-devel and you can install it

$ sudo yum install mesa-libGL-devel

No comments:

Post a Comment