且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

没有名为'matplotlib.pyplot'的模块; 'matplotlib'不是一个软件包

更新时间:2023-11-22 14:38:28

如果您正在使用pycharm,并且在当前工作目录中具有matplotlib.py,则会收到此错误.只需删除或重命名matplotlib.py文件,它将起作用.

If you are using pycharm and have matplotlib.py in your current working directory than you get this error. Just delete or rename the matplotlib.py file and it will work.