[Tutor] No module named '_tkinter'
eryksun
eryksun at gmail.com
Mon Dec 9 09:14:43 CET 2013
On Sun, Dec 8, 2013 at 2:36 PM, pierre dagenais <eq742 at ncf.ca> wrote:
> 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.
>
> ImportError: No module named '_tkinter'
>
> I've tried installing python3-tk from the Ubuntu repository but it
> doesn't help.
It looks like you didn't install the development dependencies before
building. The build-dep for Lucid's 3.1 package should do the trick.
sudo apt-get update
sudo apt-get build-dep python3.1
For good measure run the following, too:
sudo apt-get install build-essential \
libbz2-dev libdb-dev libexpat1-dev libffi-dev \
libgdbm-dev liblzma-dev libncursesw5-dev \
libreadline6-dev libsqlite3-dev libssl-dev \
tk-dev zlib1g-dev
Then do a `make clean` and rebuild.
More information about the Tutor
mailing list