No module named 'matplotlib.pyplot'; 'matplotlib' is not a package

不羁的心 提交于 2019-11-29 18:13:47

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.

In your working directory, check if there is any file matplotlib.py Delete that file and import matplotib again. That should work.

don't name any file as matplotlib.py within your working directory

Hadad

simply install:

python -m pip install -U pip
python -m pip install -U matplotlib
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!