使用pythons Libbhm库导入

2024-10-02 20:31:53 发布

您现在位置:Python中文网/ 问答频道 /正文

我按照installation directions安装了GHMM库。但是,我仍然得到以下错误:

Python 2.6.6 (Apr 11 2011, 15:50:32) 
[GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import ghmm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ghmm.py", line 112, in <module>
    import ghmmwrapper
  File "ghmmwrapper.py", line 25, in <module>
    _ghmmwrapper = swig_import_helper()
  File "ghmmwrapper.py", line 17, in swig_import_helper
    import _ghmmwrapper
ImportError: libghmm.so.1: cannot open shared object file: No such file or directory

我试图将我的LD_PRELOAD_PATH变量改为/usr/local/lib,但没有成功。在

另外,当我试图找到libghmm时,我得到了以下信息,因此库肯定在那里:

^{pr2}$

有什么想法吗?在


Tags: orinpyimporthelperlineinstallationfile