ImportError: libGL.so.1: cannot open shared object file: No such file or directory

import cv2

ImportError: libGL.so.1: cannot open shared object file: No such file or directory

 

apt install libgl1-mesa-glx

apt-get update

但是apt-get update 0%[working]一直卡住

rm -r /etc/apt/sources.list.d

apt clean

再次执行即可

如果又出现

ImportError: libgthread-2.0.so.0: cannot open shared object file: No such file or directory

apt-get update
apt-get install libglib2.0-dev

 

 

 

 

posted on 2021-02-10 21:27  cltt  阅读(956)  评论(0编辑  收藏  举报

导航