森 • 时光机

ImportError: cannot open shared object file

在使用python的过程中经常会出现如下错误:

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

这时需要安装对应的依赖才能解决,可是常常我们并不知道缺失的文件属于哪个软件包。于是本文整理了一些常用的依赖包,如下表:

安装方式根据各个系统决定。

缺失文件Debian包名称
libopenjp2.so.7libopenjp2-7
libtiff.so.5libtiff5-dev
libxslt.so.1python3-lxml (libxslt1.1)

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »