471,330 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

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

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
1 3293
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.

Similar topics

2 posts views Thread by Sandeep Gupta | last post: by
14 posts views Thread by Jeffrey Barish | last post: by
12 posts views Thread by Claudio Grondi | last post: by
28 posts views Thread by H J van Rooyen | last post: by
122 posts views Thread by Edward Diener No Spam | last post: by
1 post views Thread by Sorin Schwimmer | last post: by
40 posts views Thread by =?iso-8859-1?B?QW5kcuk=?= | last post: by
15 posts views Thread by kyosohma | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.