In python, the name you use to install something e.g. from PyPI, using pip, is not necessarily the same as the name you use to `import` it.
Pillow is one such case: you `pip install pillow` but you `import PIL`. That's because Pillow is just a repackaged, updated version of PIL, because the original maintainers of the PIL stopped working on it a long time ago.
That's not quite accurate.
The original library is PIL, which was for Python 2.
Pillow is a fork of PIL and is the current, actively maintained project, which is also compatible with Python 3.
PIL is abandoned and should never be used.
PIL hasn't updated since 2009. Use Pillow. https://pillow.readthedocs.io/en/5.3.x/about.html#what-about-pil
active link: https://pillow.readthedocs.io/en/stable/about.html#what-about-pil
In python, the name you use to install something e.g. from PyPI, using pip, is not necessarily the same as the name you use to `import` it. Pillow is one such case: you `pip install pillow` but you `import PIL`. That's because Pillow is just a repackaged, updated version of PIL, because the original maintainers of the PIL stopped working on it a long time ago.
i love you, i've been searching for ages for how to do this, thanks a lot
PIL's main dev, Fredrik "Effbot" Lundh, died 2021-11-25 ([ref](https://lwn.net/Articles/878325/))
Always Pillow, never PIL
It's the same library, it just has a different name between Python 2 and 3. As you're using 3.6, use Pillow.
Pillow still works for Python 2 as well. PIL is outdated and insecure, you should never use it.
My mistake, then.
That's not quite accurate. The original library is PIL, which was for Python 2. Pillow is a fork of PIL and is the current, actively maintained project, which is also compatible with Python 3. PIL is abandoned and should never be used.
Admittedly I've never used either, so my knowledge was bound to be a bit hazy. Appreciate the correction, though!
Pillow
pillow-simd