Python画词云图时字体报错,ValueError: Only supported for TrueType fonts

Python进行词云的编写,报错ValueError: Only supported for TrueType fonts,完成下方代码,即可正常运行

及升级更新Pillow库

pip install --upgrade Pillow  -i https://pypi.tuna.tsinghua.edu.cn/simple

猜你喜欢

转载自blog.csdn.net/2301_81199775/article/details/139986384