Package (Python PIL/Pillow) installed but I can't import it

You are importing incorrectly. Try using:

import PIL

or

from PIL import Image

PIL, i.e., Python Imaging Library is no longer maintained, Pillow is used instead. To maintain backwards compatibility, the PIL module name is used in imports.


In fact, Pillow is installed under name "PIL", so:

import PIL as pillow
from PIL import Image
...

Look this:

enter image description here