且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

导入错误:libGL.so.1:无法打开共享对象文件:没有这样的文件或目录

更新时间:2023-02-22 20:15:14

RUN apt-get update ##[edited]运行 apt-get install ffmpeg libsm6 libxext6 -y

将这些行添加到您的 Dockerfile

i am trying to run cv2, and when i try to import it i get

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

the suggested solution online is installing

apt install libgl1-mesa-glx

but this is already installed and the latest version.Any help would be really helpful.Thanks in advance.

RUN apt-get update ##[edited]
RUN apt-get install ffmpeg libsm6 libxext6  -y

Add these lines to your Dockerfile