Tkinter: "Python may not be configured for Tk" -


today wanted start working tkinter, have problems.

python 3.2 (r32:88445, mar 28 2011, 04:14:07)  [gcc 4.4.5] on linux2 type "help", "copyright", "credits" or "license" more information. >>> tkinter import * traceback (most recent call last): file "<stdin>", line 1, in <module> file "/usr/local/lib/python3.2/tkinter/__init__.py", line 39, in <module> import _tkinter # if fails python may not configured tk importerror: no module named _tkinter 

so how can configure python 3.2 work tkinter?

according http://wiki.python.org/moin/tkinter :

if fails "no module named _tkinter", python configuration needs modified include module (which extension module implemented in c). not edit modules/setup (it out of date). may have install tcl , tk (when using rpm, install -devel rpms well) and/or edit setup.py script point right locations tcl/tk installed. if install tcl/tk in default locations, rerunning "make" should build _tkinter extension.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -