o pacote python-tk não é reconhecido?

1

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.

    
por Michael 14.06.2012 / 18:05

1 resposta

0

Tente

sudo apt-get remove tk8.5

e

sudo apt-get install tk8.5

    
por thefourtheye 11.04.2013 / 10:50