News from this site

 Rental advertising space, please contact the webmaster if you need cooperation


+focus
focused

classification  

no classification

tag  

no tag

date  

no datas

Python报错:AttributeError: ‘ImageDraw‘ object has no attribute ‘textbbox‘

posted on 2023-06-06 10:00     read(728)     comment(0)     like(1)     collect(5)


The reason for the error is that the version of pillow is too low, so it cannot be used

Solution:

Open the Anaconda prompt to view the download list

pip list

Delete the original pillow:

pip uninstall pillow

 Re-download pillow:

pip install pillow

If the above command reports an error and the download is unsuccessful, try the following code: ( Download pillow from the Tsinghua mirror )

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

Other download mirrors:

Tsinghua University: https://pypi.tuna.tsinghua.edu.cn/simple
Alibaba Cloud: http://mirrors.aliyun.com/pypi/simple/
University of Science and Technology of China https://pypi.mirrors.ustc.edu.cn /simple/
Huazhong University of Science and Technology: http://pypi.hustunique.com/Shandong
University of Technology: http://pypi.sdutlinux.org/Douban
: http://pypi.douban.com/simple/Recommend
Tsinghua University, because all

To check whether the installation is successful, run again:

pip list

You can see that there is a pillow in the list



Category of website: technical article > Blog

Author:python98k

link:http://www.pythonblackhole.com/blog/article/79560/11198e71dba66fa02f49/

source:python black hole net

Please indicate the source for any form of reprinting. If any infringement is discovered, it will be held legally responsible.

1 0
collect article
collected

Comment content: (supports up to 255 characters)