我正在尝试导入spacy
徒然。
>>> import spacy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\spacy\__init__.py", line 12, in <module>
from . import pipeline
File "C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\spacy\pipeline\__init__.py", line 4, in <module>
from .pipes import Tagger, DependencyParser, EntityRecognizer, EntityLinker
File "pipes.pyx", line 24, in init spacy.pipeline.pipes
File "C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\spacy\pipeline\functions.py", line 5, in <module>
from ..matcher import Matcher
File "C:\Users\Alienware\Anaconda3\envs\tf2\lib\site-packages\spacy\matcher\__init__.py", line 5, in <module>
from .phrasematcher import PhraseMatcher
File "phrasematcher.pyx", line 1, in init spacy.matcher.phrasematcher
ImportError: preshed.maps does not export expected C function map_clear
我更新了conda
然后运行update conda all
。我删除了以前的版本python
并安装了最新的(3.8)。我卸载了spacy
并重新安装它。什么都没起作用。
上次我一起工作时spacy
三周前,我没有遇到任何问题。突然间,这个异常突然爆发了。
您对目前的情况有何理解?关于如何调试问题或修复故障有什么想法吗?