Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've got a small program I've written in python (2.7.3) that I'm moving over to another box.

However, when executing this line:

from Tkinter import *

I get this error;

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

However, it looks to me that python-tk is installed.

python-tk is already the newest version.

Any advice or help would be appreciated.

share|improve this question

1 Answer 1

Try

sudo apt-get remove tk8.5

and

sudo apt-get install tk8.5

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.