Ashwin Asp
Ashwin Asp

Reputation: 25

Opening tkinter in python 3.4.2 in Ubuntu 14 LTS

I just installed Ubuntu 14 LTS as a virtual machine and I tried installing python 3.4.2. And python 2.7.6 is pre-installed on Linux. I tried opening the IDLE3 for python 3.4.2 it says "Your Python may not be configured for Tk. **". So my question why IDLE is not opening and how to configure my ubuntu to work with 3.4.2 and idle as default. Thanks in advance.

Upvotes: 0

Views: 900

Answers (1)

falsetru
falsetru

Reputation: 368954

Python will not compile tkinter if you didn't install build depency for it.

By issuing the following command (followed by Python reinstallation) will solve your problem:

sudo apt-get build-dep python3-tk

Above command will install package to satisfy build dependency for tkinter.


BTW, if you are okay with Python-3.4.0 (not Pyhton-3.4.2), instead of building yourself, consider using python3 and python3-tk package.

Upvotes: 1

Related Questions