该版本的wordcloud的源码中显示不兼容python3.6
解决办法:修改wordcloud源码
修改前
508: box_size = draw.textbox((0, 0), word, font=transposed_font, anchor="lt")
510: result = occupancy.sample_position(box_size[3] + self.margin,
box_size[2] + self.margin,
random_state)
修改后
508: box_size = draw.textsize(word, font=transposed_font)
510: result = occupancy.sample_position(box_size[1] + self.margin,
box_size[0] + self.margin,
标签:box,self,fonts,wordcloud,Only,报错,font,margin,size
From: https://www.cnblogs.com/liyiyang/p/17665726.html