[Python] ImportError: libGL.so.1: cannot open shared object file: No such file or directory

Discussão em 'Python' iniciado por Stack, Setembro 29, 2024.

  1. Stack

    Stack Membro Participativo

    I am trying to run cv2, but when I try to import it, I get the following error:

    ImportError: libGL.so.1: cannot open shared object file: No such file or directory


    My suggested solution online is to install

    apt install libgl1-mesa-glx


    but this is already installed and the latest version.

    NB: I am actually running this on Docker, and I am not able to check the OpenCV version. I tried importing matplotlib and that imports fine.

    Continue reading...

Compartilhe esta Página