Tkinter doesnt contain any tk attribute.
import tkinter window = tkinter.Tk() win.mainloop()
While running this code it gives me an error
try 'Tk' instead of 'tk' it worked for me, if you think you are importing wrong,try: import tkinter tkinter._test()