Python Forum
PIL or pillow? newbie question. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: PIL or pillow? newbie question. (/thread-4711.html)



PIL or pillow? newbie question. - tony1812 - Sep-04-2017

One thing confused the heck of me are the libraries in Linux. According to this tutorial, https://www.sitepoint.com/manipulating-images-with-the-python-imaging-library/ PIL is not supported under Python3. pillow libary repleces it. But in the rest of the tutorial, from PIL import xyz.etc.
So does it mean when I import PIL , I am actually import pillow library instead Python Image Library (PIL)? Thanks


RE: PIL or pillow? newbie question. - metulburr - Sep-04-2017

Yes, use pillow but import it as PIL
https://blog.aclark.net/2013/03/15/the-story-of-pillow/


RE: PIL or pillow? newbie question. - nilamo - Sep-13-2017

pillow wanted to completely replace PIL.  So it did, by naming itself exactly the same, and having the same named modules, and the same named functions.  So any tutorial you find for PIL will also work, without any changes at all, for pillow.  What this also means, is that you can't have both installed at the same time.