Newbie question: Install Tkinter with Python2.5

Paul Boddie paul at boddie.org.uk
Thu Feb 22 16:46:46 EST 2007


TK wrote:
>
> how can I install Tkinter with Python2.5? I can install Python2.5
> (tarball) in the usual way but there is no Tkinter? What's wrong?

I see that Tcl/Tk detection has been moved in the Python source
distribution (since the "good old days" when I last had to deal with
this kind of thing) from the configure machinery to the setup.py
program. However, a few things worth checking include (1) whether you
not only have the Tcl/Tk libraries but also the Tcl/Tk headers/
includes and (2) whether they're installed in standard places or
somewhere else.

Look for things like libtcl8.4.so, libtk8.4.so as well as tcl.h and
tk.h. If appropriate, check your distribution's packages and make sure
you have the developer packages (eg. tcl8.4-dev, tk8.4-dev) installed.

Paul




More information about the Python-list mailing list