【问题标题】:python: ImportError: No module named patheffectspython:ImportError:没有名为patheffects的模块
【发布时间】:2011-03-12 06:13:09
【问题描述】:

当我尝试运行执行导入语句 matplotlib.patheffects 的 python 脚本时,我收到一条错误消息,指出没有名为 patheffects 的模块。 声明是 导入 matplotlib.patheffects

请帮助我找出导致此错误的原因以及如何使代码在没有此故障的情况下运行。

【问题讨论】:

  • 我只是简单地查看了matplotlib 文档,但找不到patheffects。它是模块、包、函数还是其他对象? Edit找到了。
  • 你有什么版本的matplotlib? (对于其他试图提供帮助的人:patheffects 是一个模块)
  • 从 matplotlib 导入 patheffects 或 import matplotlib.patheffects 在 winXP 中为我工作

标签: python matplotlib


【解决方案1】:

import matplotlib.patheffects 非常适合我。请确保您已安装matplotlib。最新版本是1.0.1。您可以从here 下载。

Matplotlib 依赖于numpy,因此请确保在安装 matplotlib 之前已安装它。

还可以查看installing matplotlib 上的提示。

【讨论】:

    猜你喜欢
    • 2011-02-01
    • 2020-02-18
    • 2017-02-14
    • 1970-01-01
    • 1970-01-01
    • 2014-04-04
    • 2016-03-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多