在Windows系统上一批可以下载但是需要经过编译再安装的第三方的直接编译后的版本(UCI页面)
(https://www.lfd.uci.edu/~gohlke/pythonlibs/)
win10上安装wordcloud:
https://blog.csdn.net/m0_38015368/article/details/80182477
https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud
https://www.icourse163.org/learn/BIT-268001?tid=1002788003#/learn/forumdetail?pid=1005142158
小实例
import wordcloud
txt = "life is short,you need python"
w = wordcloud.WordCloud( background_color = "white") #用wordcloud.WordCloud生成词云对象,给出参数background_color
w.generate(txt) #用.generate()方法将文本加载到对象中
w.to_file("pywcloud.png") #用to_file()方法将词云输出为png文件
连接
https://www.icourse163.org/learn/BIT-268001?tid=1002788003#/learn/forumdetail?pid=1005149802