Python Forum
PIL or pillow? newbie question.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIL or pillow? newbie question.
#1
One thing confused the heck of me are the libraries in Linux. According to this tutorial, https://www.sitepoint.com/manipulating-i...g-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
Reply
#2
Yes, use pillow but import it as PIL
https://blog.aclark.net/2013/03/15/the-story-of-pillow/
Recommended Tutorials:
Reply
#3
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How is pandas modifying all rows in an assignment - python-newbie question markm74 1 760 Nov-28-2023, 10:36 PM
Last Post: deanhystad
  newbie question - can't make code work tronic72 2 740 Oct-22-2023, 09:08 PM
Last Post: tronic72
  Newbie question about switching between files - Python/Pycharm Busby222 3 676 Oct-15-2023, 03:16 PM
Last Post: deanhystad
  Newbie.... run for cover. OpenCV question Stevolution2023 2 1,030 Apr-12-2023, 12:57 PM
Last Post: Stevolution2023
  numpy newbie question bcwilly_ca 4 1,246 Feb-10-2023, 05:55 PM
Last Post: jefsummers
  Question about ImagePath.Path() in Pillow library dfkettle 1 947 Jan-24-2023, 07:20 PM
Last Post: snippsat
  Question from complete python's newbie Davicom 3 2,449 Jun-09-2021, 06:09 PM
Last Post: bowlofred
  Newbie question about running Python via GUI on OSX ejwjohn 8 3,648 Feb-05-2021, 03:20 PM
Last Post: Larz60+
  super newbie question: escape character tsavoSG 3 2,536 Jan-13-2021, 04:31 AM
Last Post: tsavoSG
  newbie question....importing a created class ridgerunnersjw 5 2,739 Oct-01-2020, 07:59 PM
Last Post: ridgerunnersjw

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020