Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImportError: No module named PIL

I use this command in the shell to install PIL:

easy_install PIL 

then I run python and type this: import PIL. But I get this error:

Traceback (most recent call last):   File "<console>", line 1, in <module> ImportError: No module named PIL 

I've never had such problem, what do you think?

like image 928
Asma Gheisari Avatar asked Jan 14 '12 17:01

Asma Gheisari


1 Answers

In shell, run:

pip install Pillow 

Attention: PIL is deprecated, and pillow is the successor.

like image 164
zhiming wang Avatar answered Sep 28 '22 05:09

zhiming wang