no module named _tkinter

B

Ben ZX

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.
 
M

Michele Simionato

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'.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,153
Members
46,699
Latest member
AnneRosen

Latest Threads

Top