By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,383 Members | 2,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,383 IT Pros & Developers. It's quick & easy.

how to compile python to have gtk and Tkinter modules in Linux environment.

P: n/a
Hello,
How do I go about to have python compiled from source so that I can
import gtk and Tkinter modules. Those don't seem to be included when
I use the default ./configure or python setup.py.

Thanks in advance,
-Peter

Jul 17 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Jul 16, 8:16 pm, cfp...@gmail.com wrote:
import gtk and Tkinter modules. Those don't seem to be included when
I use the default ./configure or python setup.py.
Tkinter is supposed to be included by default, although that depends
on who's Python you are using and ./configure. You have to install
PyGTK separately, at least on Linux. Both have to be somewhere in
your PYTHONPATH so Python can find them. Also, Tkinter depends on TCL/
Tk. All of this sounds more intimidating than it really is. If you
are on Linux, Python should be in /usr/lib and you can check for
Tkinter in ?usr/lib/python/lib-tk. What os are you using and was
Python included or did you install it yourself? If so, where did you
download Python and was it a binary or source?

Jul 17 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.