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
  • 9,914
  • 7
  • 59
  • 102
Dylan Pham
  • 55
  • 1
  • 9

0 Answers0