Tkinter doesnt contain any tk attribute.
import tkinter window = tkinter.Tk() win.mainloop()
While running this code it gives me an error
Did you named your python file tkinter.py or Tkinter.py ? Try to rename it. It may be the cause.