最近在矩池云上跑一个深度学习项目,需要安装最新版opencv_python,重新安装opencv后再跑代码出现了下面的错误: libGL.so.1: cannot open shared object file: No such file or directory 这里简单记录下解决方案: sudo apt update sudo apt install libgl1-mesa-glx 安装完上述即可。