Exception in Tkinter callbackTraceback most recent call last File CUsers86131anaconda3libtkinter__init__py line 1705 in __call__ return selffuncargs File ipython-input-4-3884eb7687d8 line 286 in
This error occurs when the 'textbbox' attribute is not found in the 'ImageDraw' object. This can happen if the version of the Pillow library installed is not compatible with the WordCloud library.
To fix this error, you can try upgrading the Pillow library to the latest version using the following command:
pip install --upgrade Pillow
If upgrading the Pillow library does not resolve the issue, you can try downgrading the WordCloud library to a previous version that is compatible with the installed version of Pillow.
pip install wordcloud==1.8.1
This should resolve the 'textbbox' attribute error and allow you to generate the word cloud successfully
原文地址: https://www.cveoy.top/t/topic/g9Uc 著作权归作者所有。请勿转载和采集!