cv2 ImportError: libGL.so.1: cannot open shared object file: No such file or directory
本博客旨在解决在import cv2时出现的问题pip install opencv-pythonpip install opencv-contrib-python此时运行程序会出现标题所示错误,使用一下方法解决:sudo apt-get updatesudo apt-get install -y libgl1-mesa-dev如果在运行最后一条语句时出现错误:E: dpkg was interr
·
本博客旨在解决在import cv2
时出现的问题
pip install opencv-python
pip install opencv-contrib-python
此时运行程序会出现标题所示错误,使用以下方法解决:
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev
如果在运行最后一条语句时出现错误:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
则运行:
sudo dpkg --configure -a
sudo apt-get install -y libgl1-mesa-dev
更多推荐
已为社区贡献1条内容
所有评论(0)