Python spacy 2.3.5 安装过程中子进程错误
我输入了命令 pip install spacy==2.3.5
结果出现了很多行错误信息,下面是错误信息的最后部分
Cython.Compiler.Errors.CompileError: thinc/extra/eg.pyx [输出结束]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[end of output]
注意:这个错误来自一个子进程,可能不是pip本身的问题。
错误:子进程退出时出错
× pip的子进程在安装构建依赖时没有成功运行。
我想使用pyresparser,但它无法访问config.cfg文件,错误提示说这个cfg文件缺失。这是因为我安装的spacy版本是3.7.1,而pyresparser需要的是spacy 2.3.5版本,但这个版本也出现了错误。
1 个回答
0
你可以通过以下方式安装 spacy==2.3.5
:
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.1/en_core_web_sm-2.3.1.tar.gz
或者
pip install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-2.3.0/en_core_web_sm-2.3.0.tar.gz
这里是完整的链接: https://github.com/explosion/spacy-models/blob/master/compatibility.json