ImportError:没有名为'thinc.about'的模块

时间:2018-01-02 10:22:31

标签: windows python-3.x spacy

我正在尝试为windows安装spacy,python 3.x. 我运行了以下命令: -

conda install -c conda-forge spacy
python -m spacy download en

“python -m spacy download en”给出错误: -

Traceback (most recent call last):
  File "D:\Anaconda3\lib\runpy.py", line 174, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "D:\Anaconda3\lib\runpy.py", line 133, in _get_module_details
return _get_module_details(pkg_main_name, error)
  File "D:\Anaconda3\lib\runpy.py", line 109, in _get_module_details
__import__(pkg_name)
  File "D:\Anaconda3\lib\site-packages\spacy\__init__.py", line 4, in <module>
from .cli.info import info as cli_info
  File "D:\Anaconda3\lib\site-packages\spacy\cli\__init__.py", line 1, in <module>
from .download import download
  File "D:\Anaconda3\lib\site-packages\spacy\cli\download.py", line 10, in <module>
from .link import link
  File "D:\Anaconda3\lib\site-packages\spacy\cli\link.py", line 7, in <module>
from ..compat import symlink_to, path2str
  File "D:\Anaconda3\lib\site-packages\spacy\compat.py", line 11, in <module>
from thinc.neural.util import copy_array
  File "D:\Anaconda3\lib\site-packages\thinc\__init__.py", line 1, in <module>
from .about import *
ImportError: No module named 'thinc.about'

当我尝试导入spacy之后出现同样的错误。如何成功安装spacy?

1 个答案:

答案 0 :(得分:0)

我发现这个link从我下载了所有必需的whls以逐个安装spacy。