python-3.x - 导入 nn_parser 时 Spacy_DLL 加载失败
问题描述
我正在尝试使用命令 python -m spacy download fr_core_news_md 下载 Spacy 的法语模块,但出现错误:
Traceback (most recent call last):
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 184, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 143, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 110, in _get_module_details
__import__(pkg_name)
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python38\lib\site-packages\spacy\__init__.py", line 12, in <module>
from . import pipeline
File "C:\Users\Lenovo\AppData\Local\Programs\Python\Python38\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.
如何解决?
Windows 10*64 上的 Python 3.8.2(64 位)
谢谢!
解决方案
我设法通过在我的 Windows 机器上安装 Visual C++ redist 来修复这个错误。 https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
推荐阅读
- python - TypeError:无法将“时间戳”类型与“日期”类型进行比较
- multithreading - JavaFX 等待 FileChooser showSaveDialog 以获取选定的文件路径
- d3.js - 凸壳不适用于缩放/平移
- javascript - NodeJs Javascript 从数组中动态调用函数
- c# - 石英频率 c#
- android - 为什么这个错误显示在匕首 2 中发现了一个依赖循环
- copy - 记事本中从一个文件夹/子文件夹从一个 UNC 路径到另一个 UNC 路径的文件列表
- android - 蓝牙写入函数空错误
- python - 金字塔安全性:如何提前检测对视图的授权
- python-3.x - Alexnet tensorflow 实现精度非常低