代码在其他地方都没有问题但在机房不行,其他同学也有这样的问题
wordcloud模块导入matplotlib模块出错,这可能机房电脑里面matplotlib的版本不对。
我搜到两种解决的方法,你可以试试。
1、https://blog.csdn.net/Zqinstarking/article/details/124158287
2、https://blog.csdn.net/weixin_44881806/article/details/123238594
推荐学习一下虚拟环境的使用,自己配一个稳定的python虚拟环境,里面安装好自己常用的模块。