• 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.)

     

WirelessLink
Logo