python in linux import cv2 problem

python error in the import and installation methods tab cv2 encounter

1 Error:

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

installation

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

Guess you like

Origin www.cnblogs.com/hesujian/p/11490603.html