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

你可能感兴趣的:(linux)