天天看點

ImportError: libGL.so.1: cannot open shared object file: No such file or directory缺少共享庫

ImportError: libGL.so.1: cannot open shared object file: No such file or directory缺少共享庫

原因:缺少共享庫

解決方法:

1. centos:

(1)yum install mesa-libGL.x86_64,測試可用

(2)查到的方法,沒有測試過

ImportError: libGL.so.1: cannot open shared object file: No such file or directory缺少共享庫

2. Ubuntu:

sudo apt update

sudo apt install libgl1-mesa-glx

可能容器内沒有sudo指令

可以

apt-get update

apt-get install sudo

引用

[1]: https://www.ohazyi.com/docker-docs/

[2]: https://github.com/conda-forge/pygridgen-feedstock/issues/10