python中import cv2遇到的错误及安装方法

1 错误:

ImportError: libXext.so.6: cannot open shared object file: No such file or directory

安装

yum install libXext.x86_64

2 错误
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
安装:

yum install libSM.x86_64

3 错误
libXrender.so.1: cannot open shared object file: No such file or directory
安装:

yum install libXrender.x86_64

参考文章:
https://qiita.com/iamdaisuke/items/b25af3db3507752f9fd0

猜你喜欢

转载自blog.csdn.net/a1368783069/article/details/80254257