python报错:ModuleNotFoundError: No module named ‘plotly’
![在这里插入图片描述](https://img-blog.csdnimg.cn/4446f55ef61e4945bde5997aec1c5e99.png)
今天在学matplotlib时要用到plotly.express的包,遇到了如上所示问题,根据网上搜集的信息总结如下解决方法:
①pip install plotly 有可能是本身没安装plotly导致
②pycharm中点击files找到settings![在这里插入图片描述](https://img-blog.csdnimg.cn/9cdafda00249421097604184a4820109.png)
然后在python interpreter中找到红框所示+号
![在这里插入图片描述](https://img-blog.csdnimg.cn/7b28615041524faeb14e159e08d1d7eb.png)
点击+号 输入ploty并将其添加进去就行。
如果发现还不行,还是报错,试一试:pip install pandas
有可能是没装pandas导致!