As I try to import PIL as shown below, it shows me an error message (also shown below).
Code:
from tkinter import *
#import tkinter as tk
from PIL import ImageTk, Image
root = Tk()
root.title('Title here')
root.iconbitmap('images/logo.ico')
root.mainloop()
Error Message:
Traceback (most recent call last):
File "d:/College/Sem4/Human Computer Interaction/Full project/code here/Home.py", line 2, in <module>
from PIL import ImageTk, Image
ModuleNotFoundError: No module named 'PIL'
Note:
- I have Pillow 8.2.0 installed on my system.
- I tried doing that "pip install image" and "import Image" thing too but it also didn't work either.