Windows 7 上的 Pyfst 安装失败



几天来我一直在努力安装 Pyfst。在使用vcvarsall解决问题并安装Visual Studio C++工具后,我遇到了另一个问题,我无法在线找到答案(适用于Windows 7)。我正在尝试使用PyCharm安装它,并且尝试了Python 2.7和Python 3.5我收到此错误:

Collecting pyfst
  Using cached pyfst-0.2.3.tar.gz
Installing collected packages: pyfst
  Running setup.py install for pyfst: started
    Running setup.py install for pyfst: finished with status 'error'
    Complete output from command C:pythpythonw.exe -u -c "import setuptools, tokenize;__file__='C:\Users\...\AppData\Local\Temp\pycharm-packaging\pyfst\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record C:Users...AppDataLocalTemppip-ykez_6hi-recordinstall-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating buildlib.win-amd64-3.5
    creating buildlib.win-amd64-3.5fst
    copying fst__init__.py -> buildlib.win-amd64-3.5fst
    warning: build_py: byte-compiling is disabled, skipping.
    running build_ext
    building 'fst._fst' extension
    creating buildtemp.win-amd64-3.5
    creating buildtemp.win-amd64-3.5Release
    creating buildtemp.win-amd64-3.5Releasefst
    C:Program Files (x86)Microsoft Visual Studio 14.0VCBINamd64cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:pythinclude -IC:pythinclude "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCINCLUDE" "-IC:Program Files (x86)Microsoft Visual Studio 14.0VCATLMFCINCLUDE" "-IC:Program Files (x86)Windows Kits10include10.0.10240.0ucrt" "-IC:Program Files (x86)Windows KitsNETFXSDK4.6.1includeum" "-IC:Program Files (x86)Windows Kits8.1include\shared" "-IC:Program Files (x86)Windows Kits8.1include\um" "-IC:Program Files (x86)Windows Kits8.1include\winrt" /EHsc /Tpfst/_fst.cpp /Fobuildtemp.win-amd64-3.5Releasefst/_fst.obj -O2
    _fst.cpp
    fst/_fst.cpp(321): fatal error C1083: Cannot open include file: 'fst/symbol-table.h': No such file or directory
    error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe' failed with exit status 2
    ----------------------------------------
Command "C:pythpythonw.exe -u -c "import setuptools, tokenize;__file__='C:\Users\...\AppData\Local\Temp\pycharm-packaging\pyfst\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record C:Users...AppDataLocalTemppip-ykez_6hi-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:Users...AppDataLocalTemppycharm-packagingpyfst

谁能帮忙?

使用 OpenFST 1.5+ 中包含的 Python 绑定可能会有更好的运气。

http://www.openfst.org/twiki/bin/view/FST/PythonExtension

相关内容

  • 没有找到相关文章

最新更新