Skip to main content
 首页 » 编程设计

python之fst 库 python 出错

2024年11月01日11开发

我运行 Ubuntu,并按照此处找到的所有说明进行操作 link ..

我在尝试测试 fst 库时遇到此错误

>>> import fst 
Traceback (most recent call last): 
  File "<stdin>", line 1, in <module> 
  File "/usr/local/lib/python2.7/dist-packages/fst/__init__.py", line 1, in <module> 
    from fst._fst import EPSILON, EPSILON_ID, SymbolTable,\ 
ImportError: libfst.so.1: cannot open shared object file: No such file or directory 
>>>  

请您参考如下方法:

听起来加载器没有在 /usr/local/lib 中寻找库。将该目录添加到 /etc/ld.so.conf* 中的加载程序配置中,然后运行 ​​ldconfig。