0


spacy 安装 en_core_web_sm

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
标签: linux 运维 服务器

本文转载自: https://blog.csdn.net/jacke121/article/details/143948752
版权归原作者 AI算法网奇 所有, 如有侵权,请联系我们删除。

“spacy 安装 en_core_web_sm”的评论:

还没有评论