本人的系统为Windows7,使用的是PyCharm+Anaconda3(python3.7)+ wordcloud-1.5.0-cp37-cp37m-win_amd64。Wordcloud库安装成功。在编辑以下代码之后出现下面的错误
编辑代码如下:
运行出现的错误如下:
Traceback (most recent call last):
File “D:/Python_pycharm_projects/yuyanseji_examples(20190404)/GovRptWordCloudV1.py”, line 11, in
w.generate(txt)
File “D:\Anaconda3\lib\site-packages\wordcloud\wordcloud.py”, line 605, in generate
return self.generate_from_text(text)
File “D:\Anaconda3\lib\site-packages\wordcloud\wordcloud.py”, line 587, in generate_from_text
self.generate_from_frequencies(words)
File “D:\Anaconda3\lib\site-packages\wordclou