Pillow installed, but getting “no module named pillow” when importing

Try using

import PIL

or

from PIL import ...

instead. Pillow is a fork of PIL, the Python Imaging Library, which is no longer maintained. However, to maintain backwards compatibility, the old module name is used.

Leave a Comment