AttributeError: module ‘PIL.Image’ has no attribute ‘ANTIALIAS’ 原因为:PIL版本过高,不合适。重新安装低版本的Pillow pip install pillow==9.5.0 -i https://pypi.tuna.tsinghua.edu.cn/simple/