在 windows 上安装 pyfasttext

Installing pyfasttext on windows

我尝试按照 here 的说明在 python 3.6 下的 windows 10 上安装 pyfasttext。 我有来自 mingw 的 g++,clang LLVM 7.0.1,并将它们都放在环境变量上。 我设置 USE_CYSIGNALS=0 因为我在 windows。 但是当我 运行 命令时:

python setup.py install

我收到以下错误:

File "setup.py", line 66, in build_extensions
    if 'clang' in self.compiler.compiler[0]:
AttributeError: 'MSVCCompiler' object has no attribute 'compiler'

谁能帮我解决这个问题,我希望能够在 windows 上使用 pyfasttext。

抱歉,我没有很好地阅读 github 的文档,上面写着:

Warning! pyfasttext is no longer maintained: 
use the official Python binding from the fastText repository:
https://github.com/facebookresearch/fastText/tree/master/python

所以我只需要安装 fastText 即可。

pip install fastText

pyfasttext 在 Windows 上不受支持,因为 CYSIGNALS 未针对 Windows 编译。