Install fasttext on Windows 10 with anaconda

纵饮孤独 提交于 2021-02-07 17:14:26

问题


I am trying to install fasttext in anaconda with Windows 10 using the command: pip install fasttext as explained here: https://pypi.org/project/fasttext/

The error messages are:

ValueError: Unknown MS Compiler version 1900

and

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\

Can you tell me how I can fix this problem?

The only requirement listed is Cython, which I have:

(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:


Try:

pip install fasttext_win

If this works, credits to cmoscardi for his response in GitHub. https://github.com/salestock/fastText.py/issues/167#issuecomment-404258960



来源:https://stackoverflow.com/questions/51201570/install-fasttext-on-windows-10-with-anaconda

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