I am importing Image, ImageTk using from PIL import Image, ImageTk
I get the error that the module doesnt exist, but when I try to install it, it says that the module is already installed.
I get this error:
from PIL import Image, ImageTk
ModuleNotFoundError: No module named 'PIL'
When I try to import pillow using pip install pillow
I get the following message.
Requirement already satisfied: pillow in c:\users\admin\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (9.2.0)
This is on VS code, so I suspect the python interpreter.
CodePudding user response:
I hope this will help you: