Hey guys, I ran into this issue in my programming class, and I thought I would share the solution. It's a pretty simple solution, yet it was confusing to me because I'm not quite adept with Linux yet.
[[email protected]~]$ python3 Python 3.5.2 (default, Sep 14 2016, 11:28:32) [GCC 6.2.1 20160901 (Red Hat 6.2.1-1)] on linux 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' >>> exit()
So basically, the issue was I could not import turtle graphics. I googled around and couldn't find anything about this. Eventually, I asked a teacher who informed me that I need to find a tkinter package, because Fedora and other distros often use a headless type of python, one that does not include any type of graphical interface. It never occurred to me to look for another package, because python was already installed. So I ran:
[[email protected] ~]$ dnf search python3-tk Last metadata expiration check: 3 days, 13:53:11 ago on Sat Jan 14 20:03:06 2017. ======================================== N/S Matched: python3-tk ======================================== python3-tkinter.i686 : A GUI toolkit for Python 3 python3-tkinter.x86_64 : A GUI toolkit for Python 3 [[email protected] ~]$ sudo dnf install python3-tkinter.x86_64 [sudo] password for jim:
I simply installed the x86_64 version and that solved the problem.