python - 使用 anaconda 在 Windows 10 上安装 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
推荐阅读
- flutter - keeping repository instance "alive" with bloc
- django - Django NoReverseMatch - Amadeus API
- api - 详细信息在我的请求中可见,如何在我的 API 请求中过滤?
- react-native - 即使应用程序关闭,如何在预定时间自动启动应用程序以响应本机?
- mule - 如何在转换消息 mule 3 中使用通配符?
- scala - scala 猫遍历列表
- python - 有没有办法在 NetworkX 中找到节点之间的双向关系?
- javascript - 在特定位置插入 div
- reactjs - React 查询突变:API 调用失败时使用 onError 回调从服务器获取响应
- token - 如何使用 grant_type `client_credentials` 在 Keycloak SPI(自定义事件侦听器)中创建访问令牌