问题描述

出现说ImageDraw包里没有没有“ textsize”属性

#   AttributeError: ‘ImageDraw‘ object has no attribute ‘textsize‘

解决方案:

主要原因就是最新的Pillow 10.0.0 版本已经删除了这个,最简单的方式就是先卸载最新的Pillow,在安装Pillow 9.5.0版本的就好了。
1、卸载 Pillow

pip uninstall Pillow

 2、安装旧版本的 Pillow

pip install Pillow==9.5.0

 

posted on 2023-09-05 10:43  帆布鞋走过的流年  阅读(2623)  评论(0)    收藏  举报