python-3.x - 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.
这个错误没有出现在我的本地。非常感谢任何帮助。
解决方案
推荐阅读
- java - 使用spring esTemplate删除文档中的字段
- python - Scrapy 如何使用 itemloader 填充空项目?
- asp.net-core - 如何在类库项目中使用 AspNetCore 3.0 功能/组件
- html - 应用 type=password 时文本框失去 CSS 样式
- python - 如何调用数组中的所有图像?
- javascript - Eventemitter 循环依赖改进(已关闭)
- python - TypeError: unhashable type: 'dict' for some 50% of the logic where the remaining 50% is working fine
- python - 如何逐行读取并对每一行进行一些操作
- laravel - laravel 验证失败后显示旧的帖子数据
- java - 如何在 JPA 中验证整数为空或非空?