空间链接错误 [英] Spacy link error
问题描述
运行时:
import spacy
nlp = spacy.load('en')
打印以下内容:
警告:找不到"en"的模型 仅加载"en"令牌生成器.
Warning: no model found for 'en' Only loading the 'en' tokenizer.
/site-packages/spacy/data
为空,初始化文件除外.
所有文件路径仅指向我的python的单个安装.
/site-packages/spacy/data
is empty with the exception of the init file.
all filepaths are only pointing to my single installation of python.
任何帮助解决此问题的人.
Any help appreciated on resolving this.
谢谢! 会
推荐答案
在Windows 10上尝试此问题时,我遇到了同样的问题-问题是python -m spacy.en.download all
的输出说Linking successful
,但在上面的消息是由于权限的原因,实际上并未创建符号链接.
I had this same issue when I tried this on Windows 10 - the problem was the output of python -m spacy.en.download all
said Linking successful
but above that was the message that the symbolic link wasn't actually created, due to permissions.
以管理员身份运行python -m spacy.en.download all
可以解决此问题.
Running python -m spacy.en.download all
as an Adminstrator fixed the problem.
这篇关于空间链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!