1

I am trying to create a window using the Tkinter module in Python3.

from tkinter import *

root = Tk()

And I get this error:

_tkinter.TclError: no display name and no $DISPLAY environment variable

What does this mean and how do I fix it?

finefoot
  • 8,367
  • 7
  • 44
  • 80
Dylan Pham
  • 45
  • 1
  • 7

0 Answers0