python import cv2 报错!

如果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

你可能感兴趣的:(python,opencv)