import matplotlib.pyplot as plt [How to Solve]

Run import matplotlib.pyplot as plt error:

ImportError: cannot import name 'animation' from partially initialized module 'matplotlib' (most likely due to a circular import) (D:\Users\JackYang\anaconda3\lib\site-packages\matplotlib\__init__.py)

The defined file name cannot be the same as the package name. Other names need to be modified.

Read More: