我运行了命令 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 子进程未成功运行。
我试图使用pyrespaser,它无法访问config.cfg错误,表明缺少此cfg文件,这是由于我拥有3.7.1版本的spacy版本,但pyresparser需要spacy 2.3.5版本,该版本也会产生错误
您可以通过以下方式安装
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