【问题】
python import cv2时报错:
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
ImportError: libXrender.so.1: cannot open shared object file: No such file or directory
ImportError: libXext.so.6: cannot open shared object file: No such file or directory
【解决方法】
sudo apt-get install libsm6
sudo apt-get install libxrender1
sudo apt-get install libxext-dev
如果在docker容器内,没有sudo权限,去掉sudo就好。
最后
以上就是拼搏冰淇淋最近收集整理的关于python import cv2 报错的全部内容,更多相关python内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复