python - 导入错误 : DLL load failed: The specified module could not be found in python

标签 python jupyter-notebook

from matplotlib import pyplot as plt
ImportError                               Traceback (most recent call last)
<ipython-input-3-99ba79ecbbfb> in <module>
----> 1 from matplotlib import pyplot as plt

c:\users\user\appdata\local\programs\python\python37\lib\site-packages\matplotlib\__init__.py in <module>
    172 
    173 
--> 174 _check_versions()
    175 
    176 

c:\users\user\appdata\local\programs\python\python37\lib\site-packages\matplotlib\__init__.py in _check_versions()
    157     # Quickfix to ensure Microsoft Visual C++ redistributable
    158     # DLLs are loaded before importing kiwisolver
--> 159     from . import ft2font
    160 
    161     for modname, minver in [

ImportError: DLL load failed: The specified module could not be found.

最佳答案

尝试降级到 matplotlib 3.0.3

conda uninstall matplotlib

conda install matplotlib==3.0.3

关于python - 导入错误 : DLL load failed: The specified module could not be found in python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63410763/

相关文章:

python - 使用备用 unixODBC 安装

python - 如何在前馈神经网络中使用 RGB 值?

在 if 语句中使用 "not in"时出现 Python 错误?

python - 如何更改包含数字的所有字符串单元格以在 pandas 中同时 float ?

python - 尝试在 python 中创建分组变量

python-3.x - Jupyter 导入错误 : cannot import name

python - 在jupyter中打印数据框时没有水平滚动条

php - 我想将 "Read directory"代码从 php 翻译为 python

Python正则表达式用于解析以给定的BNF格式定义的树结构

python - 合作实验室 : how to install PyGame Learning Environment