Reputation: 48916
I'm trying to work with pillow on a Mac OS X Pro, where I did the following:
from pillow import Image
However, I got the this error:
ImportError: No module named pillow
When I try to install pillow as follow:
sudo pip install pillow
I get the following:
Requirement already satisfied: pillow in /Library/Python/2.7/site-packages
Requirement already satisfied: olefile in /Library/Python/2.7/site-packages (from pillow)
I'm not sure what to do at this point. I have pillow installed, but not able to import it.
Any ideas?
Thanks.
Upvotes: 1
Views: 2169
Reputation: 25094
The package name is called pillow
but Python Image Library
is used as follows:
from PIL import Image
#Read image
im = Image.open( 'image.jpg' )
#Display image
im.show()
PIL
was the old package, which was discontinued, but Pillow
is still developed, that's why the name is different when installing but import's are still like the old PIL
Upvotes: 4