我想在 Ubuntu 中安装 python-crfsuite。当我使用 pip 安装时,我收到了一些警告和
在 python-crfsuite 的安装记录中找不到 .egg-info 目录
当我在 python 中导入 crfutils 时,它说找不到模块。可能是什么问题,或者在 Linux 系统中是不可能的?
我想在 Ubuntu 中安装 python-crfsuite。当我使用 pip 安装时,我收到了一些警告和
在 python-crfsuite 的安装记录中找不到 .egg-info 目录
当我在 python 中导入 crfutils 时,它说找不到模块。可能是什么问题,或者在 Linux 系统中是不可能的?
安装重要工具
$ apt-get install swig
下载依赖项。
$ wget https://github.com/downloads/chokkan/liblbfgs/liblbfgs-1.10.tar.gz
解压。转到生成的目录。键入./configure
。然后make
。然后make install
。
下载实际的软件源。
$ wget https://github.com/downloads/chokkan/crfsuite/crfsuite-0.12.tar.gz
解压缩文件。转到生成的目录。键入./configure
。然后make
。转到swig>python
目录。类型
$ ./prepare.sh --swig
$ python setup.py build_ext
$ python setup.py install
您可能需要手动编辑export_wrapper.cpp
,但修复程序包含在README
如果你/usr/local/lib
得到.LD_LIBRARY_PATH
ImportError: libcrfsuite-0.12.so