首页 > 解决方案 > ImportError: DLL load failed while importing nn_parser: 找不到指定的模块

问题描述

刚刚连接到一个 gcp 实例。安装了 Python、VScode、git。克隆我的存储库创建一个虚拟环境。到目前为止一切正常。然后我运行了我的项目。

但是得到了这个错误

Traceback (most recent call last):
  File "app.py", line 3, in <module>
    import spacy
  File "C:\Users\hiteshsom\Documents\hobby_project\env\lib\site-packages\spacy\__init__.py", line 12, in <module>
    from . import pipeline
  File "C:\Users\hiteshsom\Documents\hobby_project\env\lib\site-packages\spacy\pipeline\__init__.py", line 4, in <module>
    from .pipes import Tagger, DependencyParser, EntityRecognizer, EntityLinker
  File "pipes.pyx", line 1, in init spacy.pipeline.pipes
ImportError: DLL load failed while importing nn_parser: The specified module could not be found.

这个错误没有出现在我的本地。非常感谢任何帮助。

标签: python-3.xgoogle-cloud-platformnlpspacy

解决方案


推荐阅读