spacy 安装 en_core_web_sm
目录
spacy win11 成功
linux No matching distribution found for numpy<3.0.0,>=2.0.0
解决方法:
linux安装失败:
linux安装成功 从GitHub上下载
spacy win11 成功
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple spacy
linux No matching distribution found for numpy<3.0.0,>=2.0.0
ERROR: No matching distribution found for numpy<3.0.0,>=2.0.0
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
解决方法:
python版本太低,是3.8,升级为3.10就好了。
note: This error originates from a subprocess, and is likely not a problem with pip.
linux安装失败:
# English
python -m spacy download en_core_web_sm --user
# Chinese
python -m spacy download zh_core_web_sm --user
linux安装成功 从GitHub上下载
pip3 install https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.2.0/en_core_web_sm-3.2.0.tar.gz