CFD
CFD

Reputation: 686

Installed Pillow but not being able to import it in Python

I want to install Pillow library. I installed it through:

pip install Pillow

when I want to import Pillow, I use this code:

import PIL

and I receive this error:

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

All the processes of installation and import: enter image description here

Upvotes: 2

Views: 604

Answers (1)

CFD
CFD

Reputation: 686

It worked for me on Windows with the following command:

pip install --upgrade --force-reinstall Pillow

Upvotes: 2

Related Questions