ImportError: libghmm.so.1: cannot open shared object file: No such file or directory 解决方案

 

安装了 GHMM 的 Python 模块之后, 一执行 “import ghmm”, 就直接报错。

 

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

 

终于,在网上找到了解决方案。

http://hiankun.blogspot.com/2009/09/sw-ghmm-in-python-importing-problem.html

 

在Console运行

gedit .bashrc

 

在文件的末尾 添加

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib


Logout之后再 Login, 一切OK啦。


你可能感兴趣的:(ImportError: libghmm.so.1: cannot open shared object file: No such file or directory 解决方案)