Installing pyfasttext on windows

 ̄綄美尐妖づ 提交于 2020-05-01 04:35:43

问题


I tried to install pyfasttext on windows 10 under python 3.6 as explained here. I have g++ from mingw, clang LLVM 7.0.1 and put both of them on environment variable. I set USE_CYSIGNALS=0 because I'm on windows. But when I run the command:

python setup.py install

I got the following error:

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

Can anyone help me on this, I want to be able to use pyfasttext on windows.


回答1:


Sorry, I didn't read very well docs from github that says:

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

So I only need to install fastText instead.

pip install fastText


来源:https://stackoverflow.com/questions/55004059/installing-pyfasttext-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!