我正试图使用命令:pip install fasttext在anaconda和windows 10中安装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)
最佳答案
尝试:
pip install fasttext_win
如果这有效,请将他在github中的响应归功于cmoscardi。
https://github.com/salestock/fastText.py/issues/167#issuecomment-404258960