I am trying to run a simple python script (3.6.8), using tkinter on my Ubuntu (18.04) Windows Subsystem.
import tkinter
root = tkinter.Tk()
root.mainloop()
I always get the following error: _tkinter.TclError: no display name and no $DISPLAY environment variable
I tried to fix it myself with different hints from google, but the only thing I achieved is that I got a new error code after running those two commands:
export DISPLAY=0.0
xhost +
New error code: _tkinter.TclError: couldn't connect to display "0.0"
How can i run tkinter on Ubuntu?
Thank you very much in advance for your help!