[Tkinter-discuss] Python + Tk/Tcl building

Алексей Макаров makarovalexey at gmail.com
Wed Oct 1 17:20:35 CEST 2008


I want to build python with Tk/Tcl by mysel. When writing coomand
¨import Tkinter¨ tehere is an error

>>> import Tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/Py/lib/python2.5/lib-tk/Tkinter.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter

I don understand, how should i buld python for it work correctly. Is
there some options in ./configure command for this?
Best regards, Makarov Alexey

More information about the Tkinter-discuss mailing list