嚴華 发表于 2024-12-22 16:06:34

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
                 
      
              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
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。
页: [1]
查看完整版本: spacy 安装 en_core_web_sm