Tente
sudo apt-get remove tk8.5
e
sudo apt-get install tk8.5
Eu tenho um pequeno programa que eu escrevi em python (2.7.3) que estou passando para outra caixa.
No entanto, ao executar esta linha:
from Tkinter import *
Eu recebo este erro;
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 42, in <module>
raise ImportError, str(msg) + ', please install the python-tk package'
ImportError: /usr/lib/libtk8.5.so.0: invalid ELF header, please install the python-tk package
No entanto, parece-me que o python-tk está instalado.
python-tk is already the newest version.
Qualquer conselho ou ajuda seria apreciado.
Tente
sudo apt-get remove tk8.5
e
sudo apt-get install tk8.5