ImportError: libGL.so.1: cannot open shared object file: No such file or directory缺少共享库
原因:缺少共享库
解决方法:
centos系统下:
(1)方法一:执行命令yum install mesa-libGL.x86_64,即可。
(2)方法二:按照如图方式操作,没有测试过是否可行,网上查到的,大家可以试下。
Ubuntu系统下:
sudo apt update
sudo apt install libgl1-mesa-glx
可能容器内没有sudo指令吗,也可以使用如下等价命令:
apt-get update
apt-get install sudo