TomyTang 在版块 Coding 中发起了话题 AttributeError: module ‘PIL.Image’ has no attribute ‘ANTIALIAS’ 1年, 5个月前
python运行错误
Traceback (most recent call last):
File “<module1>”, line 19, in <module>
AttributeError: module ‘PIL.Image’ has no attribute ‘ANTIALIAS’Fixed:
ANTIALIAS was removed in Pillow 10.0.0 (after being deprecated through many previous versions). Now you need to use PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS.
(This is the exact same algorithm that ANTIALIAS referred to, you just can no longer access it through the name ANTIALIAS.)
最后在线: 活跃于 10个月, 3周前
评论: 7
获赞: 0
文章: 0
粉丝: 68
关注: 68
好友: 2
User Rating: ( vote)