I am currently working on designing a UI for my project using Tkinter. I tried to insert an image using this :
import Tkinter as tk
from PIL import ImageTk, Image
window = Tk()
window.title("Outlier Detection using Feature Grouping")
window.configure(background = "black")
path="C:/Users/user/Desktop/od in hd/Corr"
C = tk.Canvas(window, bg="blue", height=250, width=300)
img = ImageTk.PhotoImage(Image.open(path))
and I get the error :
IOError: [Errno 2] No such file or directory: 'C:/Users/user/Desktop/od in hd/Corr'
I went through the solutions in the other questions but did not understand them much as I am new to Tkinter. Why does it say that no file or directory exists? How can I insert an image to my UI? Is there any other way to do so?