On 13-12-09 03:14 AM, eryksun wrote: > On Sun, Dec 8, 2013 at 2:36 PM, pierre dagenais <eq...@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 > python3.1 is not available on precise pangolin, so used python3.2 instead.
> 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 > A few of these were missing, installed now. > Then do a `make clean` and rebuild. > Don't know what a 'make clean' is. I skipped it and rebuilt, looks good now. I can 'import tkinter' without error. Thank you, much appreciated, PierreD. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor