'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



Solution 1:[1]

It worked for me on Windows with the following command:

pip install --upgrade --force-reinstall Pillow

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 CFD