导入错误:无法导入名称' _path'蟒蛇

时间:2018-01-17 15:32:31

标签: python matplotlib importerror spyder

我知道其他人遇到过这种问题,但我仍然无法解决问题。我刚刚开始编程。

我使用spyder IDE并在运行代码时出现以下错误。

File "C:\Users\kaany\AppData\Roaming\Python\Python36\site-packages\matplotlib\path.py", line 25, in <module>
    from . import _path, rcParams

ImportError: cannot import name '_path'

当我删除&#39;导入matplotlib作为plt&#39;从我的代码一切都很顺利。

我有numpy 1.13.3和matplotlib 2.1.0

如果有人为此提供任何解决方案,我将不胜感激。

0 个答案:

没有答案