背景
在运行知识图谱相关demo时,需要安装fastText,安装fastText又要安装cysignals,但安装时报错系统找不到文件,具体如下:
ERROR: Command errored out with exit status 1:
command: 'd:\develop\python\python36\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\SONGZE~1\\AppData\\Local\\Temp\\pip-install-oyvldc2g\\pyfasttext\\setup.py'"'"'; __file__='"'"'C:\\Users\\SONGZE~1\\AppData\\Local\\Temp\\pip-install-oyvldc2g\\pyfasttext\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
cwd: C:\Users\SONGZE~1\AppData\Local\Temp\pip-install-oyvldc2g\pyfasttext\
Complete output (42 lines):
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting cysignals
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/51/5f/727aa099de5c60b3fb42cdde72097277803d

本文详细记录了解决fastText安装问题的过程,由于依赖库cysignals在Windows环境下使用pip安装失败,提供了通过源码安装fastText的替代方案。首先,需确保已安装pybind11组件;其次,下载并解压fastText源码;最后,通过运行setup.py完成安装。

2万+

被折叠的 条评论
为什么被折叠?



