在Windows上安装pyfasttext

问题描述 投票:0回答:1

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

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。

python-3.x fasttext
1个回答
1
投票

对不起,我没有从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
© www.soinside.com 2019 - 2024. All rights reserved.