ImportError: libSM.so.6: cannot open shared object file: No such file or directory
程序员文章站
2022-03-25 17:24:39
...
ImportError: libSM.so.6: cannot open shared object file: No such file or directory
在centso 7 上配置opencv-python时候, 出现了如上的错误。
然后觉得是没有安装成功, 就又执行了一遍安装。
sudo pip install opencv-python == 4.1.2.30
最后结果还是错误。
然后可以使用以下命令查看缺少什么包
yum whatprovides libSM.so.6
然后使用以下命令执行安装
sudo yum install libSM-1.2.2-2.el7.x86_64 --setopt=protected_multilib=false
等待安装成功后, 重新尝试导包,成功!
参考:
https://www.jianshu.com/p/09c54a5fc32d
https://www.cnblogs.com/haiyang21/p/11210038.html
下一篇: OpenGL 之 帧缓冲 使用实践
推荐阅读
-
解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
-
linux系统安装VMware(详细解决"Cannot open /dev/vmmon: No such file or directory"问题)
-
mdadm: cannot open /dev/sdb: No such file or directory
-
Tensorflow:ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
-
libiconv.so.2 cannot open shared object file: No such file or directory
-
libmatio.so.2: cannot open shared object file: No such file or directory
-
libevent-2.0.so.5: cannot open shared object file: No such file or directory
-
报错:libmysqlclient.so.18: cannot open shared object file: No such file or directory.
-
libcudart.so.9.2: cannot open shared object file: No such file or directory
-
解决error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file