Reputation: 900
I installed Python 2.6 from source for software testing (2.7 was preinstalled on my Linux distro). However, I cannot import Tkinter within 2.6, I suppose because it doesn't know where to find Tk. How do I either help 2.6 find the existing Tkinter install or reinstall Tkinter for 2.6?
Upvotes: 1
Views: 471
Reputation: 900
I solved this by adding '/usr/lib/x86_64-linux-gnu' to lib_dirs in setup.py, then rebuilding python
Upvotes: 1
Reputation: 798516
Install the TCL and Tk development files and rebuild Python.
Upvotes: 1