import cv2报错ImportError

ubuntu16.04安装opencv-python后,import cv2报错ImportError:

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

解决办法:

apt-get update
apt-get install apt-file
apt-file update
apt-file search libSM.so.6
apt-get install libsm6

ImportError: libXrender.so.1: cannot open shared object file: No such file or directory

解决办法:

apt-get install libxrender1

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

解决办法:

apt-get install libxext6

你可能感兴趣的:(Opencv)