python - 使用 anaconda 在 Windows 10 上安装 fasttext

标签 python windows anaconda fasttext

我正在尝试使用以下命令在 Windows 10 的 anaconda 中安装 fasttext: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)

最佳答案

尝试:

pip install fasttext_win

如果可行,感谢 cmoscardi 在 GitHub 中的回复。 https://github.com/salestock/fastText.py/issues/167#issuecomment-404258960

关于python - 使用 anaconda 在 Windows 10 上安装 fasttext,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51201570/

相关文章:

python - 如何将文件从云存储复制到其他云?例如,Google Drive 到 OneDrive

python - 使用 aiohttp.ClientSession.get 时如何模拟协程 json()

Python 列出最后 10 个修改的文件并读取所有 10 个文件的每一行

python - 为什么将列表作为参数传递比传递生成器性能更好?

python-3.x - Pyinstaller无法使用sklearn编译项目

windows - Grep 认为文本文件是二进制的,但它不是

python - 运行子文件夹中的脚本

c++ - Qmake 在创建 Visual Studio 项目时不替换环境变量?

python - 如何在 Singularity 配方中激活 Anaconda 环境

python - 为什么 conda init 错误地更新了我的 .bash_profile?