python cv2报错:ImportError: libGL.so.1: cannot open shared object file: No such file or directory

同时安装如下即可。

pip3 install opencv-python==4.5.4.58 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip3 install opencv-python-headless==4.5.4.58 -i https://pypi.tuna.tsinghua.edu.cn/simple

你可能感兴趣的:(Python基础,python,opencv,开发语言)