How do I get the Pillow module to work in Python 2?

I am using a Mac with Yosemite.

"from PIL import Image" works in my terminal, but it doesn't work in Sublime. When I run it in sublime I get "ImportError: No module named PIL"

"Import Image" doesn't work either. I really want this to work with sublime, but I'm not even sure if this is an issue with the editor, even if it works in the terminal.

+3
python pillow


source to share


No one has answered this question yet

Check out similar questions:

5504
Does Python have a ternary conditional operator?
5231
What are metaclasses in Python?
5116
How can I check if a file exists without exceptions?
4473
Calling an external command in Python
3790
How can I safely create a subdirectory?
3602
Does Python have a substring method "contains"?
2601
How can I make a time delay in Python?
2568
How to find the current time in Python
1782
How can I get the number of items in a list?
932
Getting the class name of an instance in Python



All Articles
Loading...
X
Show
Funny
Dev
Pics