in reply to To install Tk, you need an X display
Xvfb is a great tool for emulation of an X server environment for testing. This readme includes example usage.
NOTE: corrected link to Xvfb man page
In Section
Meditations
in reply to To install Tk, you need an X display
NOTE: corrected link to Xvfb man page