简体   繁体   English

Pycharm:ImportError:DLL 加载失败:找不到指定的模块

[英]Pycharm: ImportError: DLL load failed: The specified module could not be found

Then trying to import matplotlib in Python 3.7 using:然后尝试使用以下命令在 Python 3.7 中导入 matplotlib:

from matplotlib import pyplot as plt

The following error is given.给出以下错误。

Traceback (most recent call last): 
File "C:/Users/EDRM/PycharmProjects/pythonProject/main.py", line 2, in <module>
from matplotlib import pyplot as plt
File "C:\Users\EDRM\PycharmProjects\pythonProject\venv\lib\site-packages\matplotlib\__init__.py"
line 174, in <module> _check_versions()
File "C:\Users\EDRM\PycharmProjects\pythonProject\venv\lib\site-packages\matplotlib\__init__.py", line 159, in _check_versions
from . import ft2font
ImportError: DLL load failed: The specified module could not be found.
Process finished with exit code 1

I have installed matlabplot via terminal, same error occurred, uninstalled it via terminal.我已经通过终端安装了 matlabplot,发生同样的错误,通过终端将其卸载。 Installed via settings, same issue.通过设置安装,同样的问题。 Uninstalled via terminal, and reinstalled, but nothing helped.通过终端卸载并重新安装,但没有任何帮助。

in: C:\Users\EDRM\PycharmProjects\pythonProject\venv\lib\site-packages\matplotlib I can find the pyplot file.在:C:\Users\EDRM\PycharmProjects\pythonProject\venv\lib\site-packages\matplotlib 我可以找到 pyplot 文件。 What is the issue and how do I resolve it?问题是什么,我该如何解决?

Cheers干杯

I'm not sure why this was the case however by downgrading matplotlib to version 3.0.3 the above problem was resolved.我不确定为什么会出现这种情况,但是通过将 matplotlib 降级到 3.0.3 版,上述问题得到了解决。 Type the following in terminal:在终端中键入以下内容:

pip uninstall matplotlib

pip install matplotlib==3.0.3

just write import pandas and most probably it will solve your problem只写import pandas很可能它会解决你的问题

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 导入错误:DLL 加载失败:找不到指定的模块 - PyCharm - ImportError: DLL load failed: The specified module could not be found - PyCharm ImportError:DLL加载失败:在PyCharm中找不到指定的模块 - ImportError: DLL load failed: The specified module could not be found in PyCharm ImportError:DLL加载失败:找不到指定的模块。 在pycharm中导入cv2时 - ImportError: DLL load failed: The specified module could not be found. when importing cv2 in pycharm 在pycharm ImportError中:DLL加载失败:找不到指定的模块。 导入人脸识别时 - In pycharm ImportError: DLL load failed: The specified module could not be found. while importing facerecognition ImportError: DLL 在导入 cv2 时加载失败:在 pycharm 中找不到指定的模块,python 3.9 - ImportError: DLL load failed while importing cv2: The specified module could not be found in pycharm with python 3.9 可以从 pycharm 运行脚本,但不能从终端运行。 导入错误:DLL 加载失败:找不到指定的模块 - Can run script from pycharm, but not from Terminal. ImportError: DLL load failed: The specified module could not be found Skilearn导入错误:DLL加载失败:找不到指定的模块 - Skilearn ImportError: DLL load failed: The specified module could not be found 对象检测 - 导入错误:DLL 加载失败:找不到指定的模块 - Object detection - ImportError: DLL load failed: The specified module could not be found Windows 上的 Tensorflow - ImportError:DLL 加载失败:找不到指定的模块 - Tensorflow on windows - ImportError: DLL load failed: The specified module could not be found tensorflow 2.3.1 导入错误:DLL 加载失败:找不到指定的模块 - tensorflow 2.3.1 ImportError: DLL load failed: The specified module could not be found
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM