【问题标题】:Error named no module named 'matplotlib.pylot' when use numpy [duplicate]使用 numpy 时出现错误,没有名为“matplotlib.pylot”的模块 [重复]
【发布时间】:2021-05-23 18:19:09
【问题描述】:

当我在 Python 中声明 2 个库时,出现 2 个错误: 将 matplotlib.pylot 导入为 plt 从 scipy 导入杂项

没有名为“matplotlib.pylot”的模块,并且模块“scipy.misc”没有属性“imread”。 请帮我修复它。

【问题讨论】:

  • 因为是matplotlib.pyplot,打错字了。
  • 同样imreadscipy.misc中不存在

标签: python python-3.x numpy matplotlib scipy


【解决方案1】:

您收到错误,因为它不是“matplotlib.pylot”而是“matplotlib.pyplot”。

【讨论】:

  • 我没有使用斜体字体
猜你喜欢
  • 2018-11-03
  • 2016-11-14
  • 2021-03-16
  • 2011-12-10
  • 1970-01-01
  • 2019-01-20
  • 2016-11-03
  • 1970-01-01
相关资源
最近更新 更多