from .cv2 import * ImportError: libGL.so.1: cannot open shared object file: No such file or directo

![在这里插入图片描述](https://www.icode9.com/i/ll/?i=fb1d7944349641caad0ec5a41ca9d6a0.png?x-oss-process=imafrom .cv2 import * ImportError: libGL.so.1: cannot open shared object file: No such file or directoge/watermark,type_d3F5LXplbmhlaQ,shadow_50,text_Q1NETiBAd2VpeGluXzQ5ODgwOTk5,size_20,color_FFFFFF,t_70,g_se,x_16)

from .cv2 import * ImportError: libGL.so.1: cannot open shared object file: No such file or directo
缺少共享库
解决办法:
ubuntu
(1)容器内没有sudo指令

apt-get update
apt-get install sudo

(2)安装

sudo apt update
sudo apt install libgl1-mesa-glx

按照这个步骤已解决
感谢大佬

引用

https://blog.csdn.net/agonysome/article/details/108985079?spm=1001.2101.3001.6650.6&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6.pc_relevant_aa&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7ERate-6.pc_relevant_aa&utm_relevant_index=7

上一篇:G - 小鑫爱运动


下一篇:Windows电脑上最好用的3个azw3阅读器