DLL加载失败:找不到指定的模块。在matplotlib程序中

时间:2019-05-24 03:21:11

标签: python-3.x matplotlib

我正在学习python中的matplotlib模块,我已经在命令提示符“ pip install matplotlib”中使用命令安装了该库 并显示已成功安装,并且在python 3.7 IDLE中, 当我输入import matplotlib时,我遇到此错误

Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.

>>> import matplotlib
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import matplotlib
  File "C:\Program Files\Python37\lib\site-packages\matplotlib\__init__.py", line 200, in <module>
    _check_versions()
  File "C:\Program Files\Python37\lib\site-packages\matplotlib\__init__.py", line 194, in _check_versions
    module = importlib.import_module(modname)
  File "C:\Program Files\Python37\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
ImportError: DLL load failed: The specified module could not be found.

1 个答案:

答案 0 :(得分:0)