Closed hugovk closed 6 years ago
Rather than PILLOW_VERSION, check the more standard __version__. PILLOW_VERSION may be removed in a future version of Pillow.
PILLOW_VERSION
__version__
They are the same: https://github.com/python-pillow/Pillow/blob/master/src/PIL/__init__.py
The old PIL version VERSION inside Pillow has always been 1.1.7 and is irrelevant, and is going to be removed in a future version of Pillow.
VERSION
I think it's very unlikely someone has installed the ~10-year-old PIL library, rather the modern Pillow fork.
Rather than
PILLOW_VERSION
, check the more standard__version__
.PILLOW_VERSION
may be removed in a future version of Pillow.They are the same: https://github.com/python-pillow/Pillow/blob/master/src/PIL/__init__.py
The old PIL version
VERSION
inside Pillow has always been 1.1.7 and is irrelevant, and is going to be removed in a future version of Pillow.I think it's very unlikely someone has installed the ~10-year-old PIL library, rather the modern Pillow fork.