Wie kann ich tkinter mit Ubuntus Standard-Python 2.7-Installation zum Laufen bringen?

Ich verwende Ubuntu 11.10, das mit Python 2.7.3 vorinstalliert wurde.

Ich habe das python3-Paket und das python3-tk-Paket über apt-get install installiert und sie haben "out of the box" zusammengearbeitet.

Aber obwohl ich das Paket python-tk installiert habe, kann ich nicht herausfinden, wie ich Python 2.7 dazu bringe, es zu sehen. Ich erhalte die folgende Fehlermeldung, wenn ich versuche, sie zu importieren.

import Tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/lib-tk/Tkinter.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter

edit: Ich habe auch folgendes basierend auf ausgeführtPython-tk-Paket wird in Python 2.7.3 nicht erkanntund bekam:

$ file /usr/lib/libtk8.5.so.0
/usr/lib/libtk8.5.so.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

$ uname -a
Linux bugbot 3.0.0-23-generic-pae #39-Ubuntu SMP Thu Jul 19 19:39:19 UTC 2012 i686 i686 i386 GNU/Linux

Antworten auf die Frage(3)

Ihre Antwort auf die Frage