缺少共享库:ImportError: libxx: cannot open shared object file: No such file or directory

import cv2出现这类错误:

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

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

这是由于缺少共享库

centos 64位 解决办法:

1、yum whatprovides libSM.so.6,提示需要的安装包


2、sudo yum install libSM-1.2.2-2.el7.x86_64 --setopt=protected_multilib=false  安装解决



你可能感兴趣的:(linux,bug)