472,146 Members | 1,216 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

problem with Tkinter after installing Python 2.5.2 on UBUNTU

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.
>>import Tkinter
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?
Jul 8 '08 #1
1 2117
On Tue, Jul 8, 2008 at 12:44 PM, <Do**********@gmail.comwrote:
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')

--
Jerry
Jul 8 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Adam | last post: by
reply views Thread by Dean N. Williams | last post: by
4 posts views Thread by PGMoscatt | last post: by
4 posts views Thread by Mike Tuller | last post: by
2 posts views Thread by David Lees | last post: by
8 posts views Thread by karthikbalaguru | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.