英文:
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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论