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

前端 未结 5 1023
刺人心
刺人心 2021-01-13 08:25

Have found a similar issue, however haven\'t found proper solution.

Here\'s a code:

import matplotlib.pyplot as plt
plt.plot([1,2,3],[4,2,5])
plt.sh         


        
5条回答
  •  别那么骄傲
    2021-01-13 09:10

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

提交回复
热议问题