linux安装cv2
直接输入pip install opencv-python如果报错:import cv2的错误记录:cv2 ImportError: libGL.so.1: cannot open shared object file: No such file or directory缺少相关依赖项,需要更新安装,执行命令:sudo apt-get updatesudo apt-get install -y l
·
直接输入
- pip install opencv-python
如果报错:
import cv2的错误记录:
- cv2 ImportError: libGL.so.1: cannot open shared object file: No such file or directory
缺少相关依赖项,需要更新安装,执行命令:
- sudo apt-get update
- sudo apt-get install -y libgl1-mesa-dev
更多推荐
已为社区贡献1条内容
所有评论(0)