cv2报错ImportError: libXrender.so.1: cannot open shared object file 解决
程序员文章站
2022-07-04 20:25:52
...
cv2时报错ImportError: libXrender.so.1: cannot open shared object file。问题解决方法:
- 终端输入 :
`yum whatprovides Xrender.so.1`
得到结果
得到了需要的版本。
2. 使用yum安装 :
yum install libXrender-0.9.10-1.el7.x86_64 --setopt=protected_multilib=false
中间会出现这个is that ok 那里输入y,就安装成功啦。
再import cv2
就不再报错啦,类型的libXext,libSM也是同样的安装步骤。
推荐阅读
-
解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
-
Tensorflow:ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory
-
报错:libmysqlclient.so.18: 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
-
cv2报错ImportError: libXrender.so.1: cannot open shared object file 解决
-
解决 ImportError: libcublas.so.9.0: cannot open shared object file: No such file
-
错误解决:error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory,errorwhileloading_PHP教程
-
错误解决:error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory,errorwhileloading_PHP教程
-
解决启动MongoDB错误:error while loading shared libraries: libstdc++.so.6:cannot open shared object file:
-
错误解决:error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory - tianxintian22