我已经通过终端成功下载了matplotlib 但是,当我尝试导入它时,我的空闲状态抛出一个错误
>>> import matplotlib.pyplot as plt
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import matplotlib.pyplot as plt
File "/Users/mac/Documents/matplotlib.py", line 1, in <module>
import matplotlib.pyplot as plt
ModuleNotFoundError: No module named 'matplotlib.pyplot'; 'matplotlib' is not a package
我该怎么办??