Configuring Python for Tk on Mac
martyn_quick at yahoo.co.uk
Fri Jan 21 16:39:12 CET 2005
On my desk here at work I have a Mac G4 running Mac OS X v10.2.8.
When I go into a terminal and type "python" up comes a nice python
interface and all seems great. However when I type "import Tkinter"
I'm greeted by the following error.
>>> import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 35, in ?
import _tkinter # If this fails your Python may not be configured
ImportError: No module named _tkinter
So I guess something about this implementation is not appropriately
configured. I'm guessing this is the default behaviour since I don't
think anyone did anything special about python when they set up my
What do I do to set it up so I can use Tkinter?
Thanks... and sorry if this is an FAQ... but I couldn't find the info
More information about the Python-list