Henry David Thorough
Henry David Thorough

Reputation: 900

Installed Python from source and cannot import Tkinter - how to install?

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

Answers (3)

Henry David Thorough
Henry David Thorough

Reputation: 900

I solved this by adding '/usr/lib/x86_64-linux-gnu' to lib_dirs in setup.py, then rebuilding python

Upvotes: 1

a p
a p

Reputation: 3198

Have you tried using pip-2.6 install package?

Upvotes: -1

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798516

Install the TCL and Tk development files and rebuild Python.

Upvotes: 1

Related Questions