Installing tcl/tk on Linux

孔 翔 kongx2004 at yahoo.co.jp
Wed Dec 17 22:07:13 EST 2003


Hi,I'm a newbie on python.

When I was trying to install python on Linux, I followed
these instructions:

1.Open the file Modules/Setup in the Python directory.
[Note: Do not alter the file Setup.in-only the file named
Setup should be modified.] Find the line that begins 
# the _tkinter module

2. Several lines need to be uncommented in order to
install the module. Follow theplatform-specific
instructions in this section to comment and uncomment the
appropriatelines. Save the file and re-build Python.
Tkinter can now be accessed byimporting the Tkinter
module.


But when I finished those steps, i found following
problem:

[root at Linux9 Python-2.3.3c1]# python
Python 2.3.3c1 (#5, Dec 18 2003, 10:52:58)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
>>> from Tkinter import *
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python2.3/lib-tk/Tkinter.py", line
38, in ?
    import _tkinter # If this fails your Python may not be
configured for Tk
ImportError: No module named _tkinter
>>>

Would anyone tell me the exact steps to configure Tkinter
on Linux?




Thx a lot.
kongx



__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/






More information about the Python-list mailing list