[Tutor] Turtle
Hershel Millman
hershel at themillmans.net
Sat Jun 18 02:25:40 EDT 2016
Hello tutors,
I have been learning basic python on my Macintosh computer and everything I have tried so far has worked, except when I tried to use the turtle module. I then used my Linux computer and the turtle module still did not work. I tried to use the command line and type "sudo dnf install turtle", "sudo pip install turtle", and it told me "no package turtle available". I tried to install Python-tk and python3-tk, and I was told that no packages by those names were available. I also tried reinstalling python 2 and python 3, to no avail.
I am running Python 2.7.1 using Mac OS X 10.6.8 on an iMac, Python 3.5.1 using Mac OS X 10.10.5, and the default python2 and Python3 that comes with fedora 24.
On my Mac running Python 3, I have tried about 6 times to enter the command import turtle, and nothing has happened. However, on my most recent attempt, I changed nothing about the program and hit run, and for some reason it worked. All of the terms were still underlined in my pycharm window, and it told me that the commands were not found, and implied that they should not be working. However, after exiting pycharm, and reopening it, it worked again, even though it told me the commands were not valid.
My question about running Python 3 on my Mac running 10.10.5:
What do I need to do to make it so my computer recognizes that they are valid commands?
My questions about running python 2.7 on my Mac running 10.6.8 and my computer running Python 2 and 3 on fedora 24:
What do I have to do to get the turtle module? And once I have it, how do I use it?
Thank you,
Hershel
More information about the Tutor
mailing list