Howto: install Tkinter in Linux

Eric Brunel eric.brunel at pragmadev.com
Wed Jan 9 12:01:29 CET 2002


Did you compile your interpreter yourself? If you did, you just have to go
to the "Modules" sub-directory of your Python installation directory, edit
the file "Setup", spot the lines for the module "_tkinter" (just search
"_tkinter" in the file), specify the options and rebuild the interpreter.
You'll have to know where your tcl and tk libraries are, because you'll have
to specify the path for them in an option, but all the other options are
quite straightforward.
If you didn't compile your Python interpreter, I don't know where you can
get one with Tkinter support already enabled... Maybe there is one
somewhere, but IMHO, the best solution is still to compile it yourself.
HTH
 - eb -

"scli" <sc_li at hongkong.com> a écrit dans le message news:
a1h6pv$5b0$1 at www.csis.hku.hk...
> Dear all,
>
> I am new in python. I am going to use python to develop GUI program by
> Tkinter. I have tried "import _tkinter" in python, and the result is
> "ImportError: No module named _tkinter". Then, i have downloaded
> "Tkinter-2.0-8.0.tar.gz" and tried "python setup.py install" to install
the
> module in my computer (setup.py is in Tkinter-2.0-8.0 directory). However,
> "ImportError: No module named disutils.core" printed out.
>
> What can i do?
>
>





More information about the Python-list mailing list