Error while executing "python -m spacy download en_core_web_sm" in spacy python

huangapple go评论70阅读模式
英文:

Error while executing "python -m spacy download en_core_web_sm" in spacy python

问题

我试图在spacy中加载"en_core_web_sm",但出现以下错误:

无法建立新连接:[WinError 10061] 无法建立连接,因为目标机器主动拒绝了它

import spacy
from spacy import displacy
from spacy import tokenizer

nlp = spacy.load('en_core_web_sm')

提前感谢!

英文:

I am trying to load "en_core_web_sm" in spacy but getting the following error

Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it'))

import spacy
from spacy import displacy
from spacy import tokenizer

nlp = spacy.load('en_core_web_sm')

Thanks in advance!

答案1

得分: 1

从这里下载whl文件spacy

然后运行以下命令

pip install en_core_web_sm-3.1.0-py3-none-any.whl

搞定

英文:

Downloading whl file from here spacy

and running the command

pip install en_core_web_sm-3.1.0-py3-none-any.whl

did the trick

huangapple
  • 本文由 发表于 2023年4月13日 21:59:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76006334.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定