'No module named 'PIL' (already installed Pillow)

PS C:\Users\hp\PycharmProjects\pythonproject> pip install Pillow Requirement already satisfied: Pillow in c:\python\python310\lib\site-packages (9.0.1)

I tried this in the powershell i already installed it before but now when i use this code in pycharm it shows this error

from PIL import Image,ImageTk

ModuleNotFoundError: No module named 'PIL'



Sources

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

Source: Stack Overflow

Solution Source