0

I have a python code:

import turtle
import random
import matplotlib.pyplot as plt
import math 
###############
myPen = turtle.Turtle()

I've installed all libraries but I have this error:

TclError: no display name and no $DISPLAY environment variable in line:
myPen = turtle.Turtle()`
Claudio
  • 7,474
  • 3
  • 18
  • 48
  • Look at this question it may help: [_tkinter.TclError: no display name and no $DISPLAY environment variable](https://stackoverflow.com/questions/37604289/tkinter-tclerror-no-display-name-and-no-display-environment-variable) – GIZ Feb 05 '23 at 10:45
  • What prints `print(turtle.__file__)`? – Claudio Feb 05 '23 at 10:54
  • 2
    Where are you running this code? What is your environment? – Gino Mempin Feb 05 '23 at 11:29

0 Answers0