immadatmycomputer
immadatmycomputer

Reputation: 1

Turtle won't import on python3.5 fedora 23

I installed the tkinter packages from the fedora repo, then I ran a simple turtle code in python... A test one form a website. (with import turtle at the top) I then tried running the following code:

from turtle import *
color('red', 'yellow')
begin_fill()
while True:
 forward(200)
 left(170)
 if abs(pos()) < 1:
   break
end_fill()
done() 

And it got the following error

[max@localhost python]$ python3 test.py
Traceback (most recent call last):
  File "test.py", line 1, in <module>
    import turtle
ImportError: No module named 'turtle'

And now even when I run the original program it no longer works. It gives the exact same error as the test.py program.

Upvotes: 0

Views: 1107

Answers (1)

user3661564
user3661564

Reputation: 107

dnf install python3-tkinter.x86_64

Upvotes: 2

Related Questions