[lammps-users] Build Tcl/tk in Python

Hello! Now I try to install Pizza in my linux machine. Following the help document of Pizza, I try to build Python with Tcl/Tk.

When writing coomand ¨import Tkinter¨ there is an error

import Tkinter
Traceback (most recent call last):
File “”, line 1, in
File “/usr/local/Py/lib/python2.5/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

I google this error on Google and find the instructionin this website http://wiki.python.org/moin/TkInter. I don’t know how to edit the setup.py file. Please give me some advice on it. Thanks.

Getting Tkinter to work in your Python is a mystery to me. I've sometimes
been successful and sometimes not, on different boxes. See the Pizza.py
doc pages for everything I know about the problem. Note that
if you don't care about using the Pizza.py tools that use Tkinter (like
the GL graphics) and just want to use other tools (like to read dump files),
then you can ignore these errors.