PDA

View Full Version : Import turtle *error* python3



TylerWen
October 13th, 2011, 07:13 AM
yesterday when attempting to do some cs problems i was asked to import turtle (for the first time) when I entered import turtle it gave me the error in the screen shot.. however (also shown in the screenshot) import turtle works fine for python 2.7... just not for the one i need to use (python3.2.2)... someone please help me.

much appreciated,

Tyler


http://img269.imageshack.us/img269/5755/screenshotpfs.th.png (http://imageshack.us/photo/my-images/269/screenshotpfs.png/)

Uploaded with ImageShack.us (http://imageshack.us)http://imageshack.us/photo/my-images/269/screenshotpfs.png/

MadCow108
October 13th, 2011, 06:57 PM
you local python3 installation does not include the tk extensions.
Did you compile it yourself?
if yes you probably mmissed seome build dependencies and it did not compile the extensions.
Check the output of the configure script for references to tk/tkinter

or install python3 from a correct package and use that.