ImportError: cannot open shared object file
在使用python的过程中经常会出现如下错误:
ImportError: libxxx.so: cannot open shared object file: No such file or directory
这时需要安装对应的依赖才能解决,可是常常我们并不知道缺失的文件属于哪个软件包。于是本文整理了一些常用的依赖包,如下表:
安装方式根据各个系统决定。
缺失文件 | Debian包名称 |
---|---|
libopenjp2.so.7 | libopenjp2-7 |
libtiff.so.5 | libtiff5-dev |
libxslt.so.1 | python3-lxml (libxslt1.1) |
当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »