[Tutor] No module named '_tkinter'

pierre dagenais eq742 at ncf.ca
Sun Dec 8 20:36:52 CET 2013


Hi,
I'm running Ubuntu 10.04 and I've installed python 3.3.3 from the
tarball at http://python.org/ftp/python/3.3.3/Python-3.3.3.tar.xz

Here is the error I get when trying to run tkinter.

pierre at Sprint:~$ python3.3
Python 3.3.3 (default, Dec  2 2013, 11:10:53)
[GCC 4.6.3] on linux
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/python3.3/tkinter/__init__.py", line 40, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named '_tkinter'
>>>

I've tried installing python3-tk from the Ubuntu repository but it
doesn't help.

Any suggestion on how to install the tkinter module with this version?

Thank you,

PierreD.


More information about the Tutor mailing list