2017年9月21日星期四

pip install pyfst失败

Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-etZdYk/pyfst/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-9_TCLO-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-etZdYk/pyfst/

解决:
有人说export CFLAGS="-std=c++11",试了下,没用。

最后发现是版本问题,我安装的openfst是1.6.3版本,pyfst只支持到了1.3.3版本,再往上版本不兼容。

附,安装openfst:
./configure
make
sudo make install

没有评论:

发表评论