no module named _tkinter

Michele Simionato michele.simionato at gmail.com
Wed Oct 22 00:11:57 EDT 2008


On Oct 22, 2:10 am, Ben ZX <zzxx... at gmail.com> wrote:
> When I type
>
> import Tkinter
>
> I get
>
> no module named _tkinter.
>
> I compiled my own python 2.5.2, and I didn't do anything special: just
> configure; make; make install.
>
> I checked there is a tk library in /usr/lib64.

You need the development files. For instance in Ubuntu
I did something like 'sudo apt-get install tk-dev'.



More information about the Python-list mailing list