【发布时间】:2021-02-21 03:03:10
【问题描述】:
代码:
from matplotlib import animation
输出:
ImportError: cannot import name 'animation' from partially initialized module 'matplotlib' (most likely due to a circular import)
motplotlib 版本是 3.3.4
【问题讨论】:
-
试试这个:
from matplotlib.animation import FuncAnimation -
... 或
import matplotlib.animation as animation
标签: python matplotlib matplotlib-animation