problem with Tkinter after installing Python 2.5.2 on UBUNTU

D

Dogzilla1000

I just installed Python 2.5.2 on UBUNTU Linux. It seems to work,
however I don't seem to have access Tkinter. This is the result of
"import Tkinter":

Python 2.5.2 (r252:60911, Jul 7 2008, 12:39:49)
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/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
What do I need to do to configure Python for Tk?
 
J

Jerry Hill

I just installed Python 2.5.2 on UBUNTU Linux. It seems to work,
however I don't seem to have access Tkinter. This is the result of
"import Tkinter":

I think ubuntu and debian both split Tkinter out of their main python
packages. Try installing the python-tk package (via your favorite
package manager, or from the command line 'sudo aptitude install
python-tk')
 

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

No members online now.

Forum statistics

Threads
473,965
Messages
2,570,148
Members
46,710
Latest member
FredricRen

Latest Threads

Top