I am using Visual Studio Code Community Edition.
I am using code like below and running it:
from tkinter import * tk = Tk() img = PhotoImage(pathtoimag