在Windows 10上使用Anaconda安装fasttext

4
我正在尝试在Windows 10上使用命令行安装fasttext到anaconda中,具体命令如下:pip install fasttext,参考链接:https://pypi.org/project/fasttext/
错误信息如下:
ValueError: Unknown MS Compiler version 1900

并且

Command "c:\users\nicol\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\nicol\\AppData\\Local\\Temp\\pip-install-pd0xqmlg\\fasttext\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\nicol\AppData\Local\Temp\pip-record-4qt38yfk\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\nicol\AppData\Local\Temp\pip-install-pd0xqmlg\fasttext\

您能告诉我如何解决这个问题吗?

唯一列出的要求是Cython,而我已经安装了:

(C:\Users\nicol\Anaconda3) C:\Users\nicol>pip install Cython
Requirement already satisfied: Cython in c:\users\nicol\anaconda3\lib\site-packages (0.25.2)
1个回答

4

你需要先安装Cython,然后运行@Shree给出的命令,这对我有效。 - Belkacem Thiziri

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接