使用matplotlib时:ImportError: 没有名为animation的模块?
我尝试过在Mac OS X上安装EPD,也在Ubuntu上用apt-get安装过,还有在Ubuntu上直接安装EPD。
在Python的交互式解释器中:
>>> import matplotlib.animation as animation
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named animation
这个导入在这个matplotlib的示例代码中使用:
http://matplotlib.sourceforge.net/examples/animation/double_pendulum_animated.html
1 个回答
2
顺便说一下,你可以通过使用 enpkg matplotlib [版本]
来更新到 matplotlib 1.1.0 或 1.2.0。
https://support.enthought.com/entries/22415022-Using-enpkg-to-update-EPD-packages