module 'matplotlib' has no attribute 'pyplot'

Pycharm中用matolotlib制图,刚刚还好好的,突然就提示module 'matplotlib' has no attribute 'pyplot'  这个错误。

import matplotlib.pyplot as plt

sales=[1.8,2.3,4.2,3.5]
company_name=['Company A','Company B','Company C','Company D']
color_s=['azure','lavender','pink','aqua']

plt.pie(
    sales,
    labels=company_name,
    colors=color_s,
    startangle=90,
    shadow=True,
    autopct='%1.2f%%',
    explode=(0.2,0,0,0),
    )
plt.show()

这是我的代码

有没有大哥帮忙解决一下呢

代码没有什么问题, 能正常运行出图

我这边运行是正常的