en_core_web_md安装失败

时间:2020-06-29 03:32:17

标签: python nlp spacy

我已经安装了spaCy(版本2.3.0),现在我正在尝试安装其中一种模型,即en_core_web_md。我正在他们的网站python -m spacy download en_core_web_md上运行命令。运行命令时,出现以下错误:ValueError: cymem.cymem.Pool has the wrong size, try recompiling. Expected 64, got 48

这是完整的追溯:

Traceback (most recent call last):
  File "C:\Users\achandra\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 185, in _run_module_as_main
    mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
  File "C:\Users\achandra\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 144, in _get_module_details
    return _get_module_details(pkg_main_name, error)
  File "C:\Users\achandra\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 111, in _get_module_details
    __import__(pkg_name)
  File "C:\Users\achandra\AppData\Local\Programs\Python\Python38\lib\site-packages\spacy\__init__.py", line 10, in <module>
    from thinc.neural.util import prefer_gpu, require_gpu
  File "C:\Users\achandra\AppData\Local\Programs\Python\Python38\lib\site-packages\thinc\neural\__init__.py", line 4, in <module>
    from ._classes.model import Model  # noqa: F401
  File "C:\Users\achandra\AppData\Local\Programs\Python\Python38\lib\site-packages\thinc\neural\_classes\model.py", line 11, in <module>
    from ..train import Trainer
  File "C:\Users\achandra\AppData\Local\Programs\Python\Python38\lib\site-packages\thinc\neural\train.py", line 7, in <module>
    from .optimizers import Adam, linear_decay
  File "optimizers.pyx", line 14, in init thinc.neural.optimizers
  File "ops.pyx", line 1, in init thinc.neural.ops
  File "cymem.pxd", line 1, in init preshed.maps
ValueError: cymem.cymem.Pool has the wrong size, try recompiling. Expected 64, got 48

我该如何解决?供参考,我使用的是python 3.8.3

0 个答案:

没有答案