matplotlib.pyplot软件包不存在

时间:2018-09-29 17:31:54

标签: matplotlib

我已经通过终端成功下载了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

我该怎么办??

0 个答案:

没有答案