〇、前情提要
学习小甲鱼的《极客Python之效率革命》绘图篇的词云制作,
出现AttributeError: module 'wordcloud' has no attribute 'WordCloud'
报错。
参考:
- 【绘图篇】《极客Python之效率革命》(小甲鱼)https://www.bilibili.com/video/av34609030
- [绘图] 词云——将你的数据可视化的一种炫酷方案
https://fishc.com.cn/forum.php?mod=viewthread&tid=140542&extra=page%3D1%26filter%3Dtypeid%26typeid%3D720 - 我的笔记-【Python】绘图篇-《极客Python之效率革命》(小甲鱼)
https://blog.csdn.net/weixin_43210113/article/details/107569446
一、错误分析
运行词云制作程序,注意我的命名为wordcloud.py
。报错如下,在import wordcloud时就出错。