So I am new to python and I am working through a turtle racer tutorial. I have copied the code exactly and the tutorial shows the code working at this point (though not complete). Mine does not. I installed tkinter on my first error that mentioned it, but now I get this error. I have modified the code a few different ways (included the commented out section using tkinter). What should I do to fix this error and continue on with my tutorial? This is the error I am getting and This is the incomplete code for the racer
CodePudding user response:
It seems like it is looking for an environment variable that is not set.
Look into how to set environment variables, specifically $DISPLAY
CodePudding user response:
Yes, it requires tkinter, it needs the Tk window for your output. You may refer to this post for clarification: here
Also, this post here provides a good explanation on how turtle operates in two modes: standalone and embedded.
