[Tutor] turtle on linux

Alan Gauld alan.gauld at yahoo.co.uk
Fri Jun 24 03:24:02 EDT 2016


On 24/06/16 01:21, Hershel Millman wrote:
> This is from my terminal on Fedora 24:
> 
> [hmillman at localhost ~]$ python
> Python 2.7.10 (default, Sep 24 2015, 17:50:09)
> [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import turtle
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named turtle
> 
> 
> How do I solve this problem?

This may be similar to the Mac issue in that you have a
non-Tk install. Try

import Tkinter

to see.

The good news is that on Fedora you should be able to
upgrade to a Tkinter enabled Python 2.7 using your
package manager.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list