IDLE cannot import Tkinter. Your Python cannot be configured for Tk

I am running Ubuntu 10.10, and today I installed Python 3.2. Python 2.6 is already running on the system.

I typed idle3.2 in the terminal and it gave me:

IDLE cannot import Tkinter. Your Python may not be configured for Tk.

So, I searched in Qaru (and in some other places) for a solution, I installed python-tk, I double-checked what I have tclshin the system, but I still cannot open it idle3.2.

Any input would be appreciated.

+5
source share
8 answers

OSX macports, python tkinter python. , python 2.7, :

sudo port install py27-tkinter

"27" python.

+9

python idle, . U python, : python sudo aptget python

+2

python3.4 Fedora 20. , tk-devel /make python. :

python3.4 python.org https://www.python.org/downloads/

tkinter tk-devel:

yum search tkinter

yum install python3-tkinter-3.3.2-17.fc20.x86_64

yum search tk-devel

yum install tk-devel.x86_64

, , cd python3.4 configure; make, make install.

. , .

PS stackoverflow . google , .

+2

python-tk python 2.6, , Tkinter python 2.6. python3-tk.

+1

tk tk-dev ubuntu.

+1

Ubuntu:

sudo apt-get install idle

  • idle
  • idle3
  • idle-python2.6
  • idle-python2.7
  • idle-python3.1
  • idle-python3.2

python.

+1

Type "idle-python2.6" in the terminal .. it worked for me

0
source

On my arch linux system, I had the same problem, which is easy to solve by typing

yaourt tkinter

and install the first package community/python-pmw 2.0.1-2 [installed]

0
source

All Articles