0
votes

I just installed python 2.7.10. Then, when I tried to open IDLE(Python GUI), Module Docs and Python(command line). I can only see "please wait while windows configures python 2.7.10". IDLE(Python GUI), Module Docs and Python(command line) never pops out.

Then, I opened a command window under C:\Python27\Lib\idlelib and entered "python idle.py". I got a following error:

C:\Python27\Lib\idlelib>python idle.py
Traceback (most recent call last):
  File "idle.py", line 11, in <module>
    idlelib.PyShell.main()
  File "C:\Python27\Lib\idlelib\PyShell.py", line 1541, in main
    root = Tk(className="Idle")
  File "C:\Python27\lib\lib-tk\Tkinter.py", line 1814, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, interactive,     want
objects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
    {C:\Python27\tcl\tcl8.5} C:/Python27/lib/tcl8.5 C:/lib/tcl8.5     C:/lib/tcl8.5
C:/library C:/library C:/tcl8.5.2/library C:/tcl8.5.2/library

C:/Python27/tcl/tcl8.5/init.tcl: version conflict for package "Tcl": have     8.5.2,
 need exactly 8.5.15
version conflict for package "Tcl": have 8.5.2, need exactly 8.5.15
    while executing
"package require -exact Tcl 8.5.15"
    (file "C:/Python27/tcl/tcl8.5/init.tcl" line 19)
    invoked from within
"source C:/Python27/tcl/tcl8.5/init.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 [list source $tclfile]"


This probably means that Tcl wasn't installed properly.

What should I do in order to pop up IDLE(Python GUI), Module Docs and Python(command line)?

2

2 Answers

0
votes

The answer's in your error; the easiest way is probably just reinstall it.

0
votes

So Tcl is a packages for GUIs. Basically it allows the computer to create popup windows. Since IDLE relies on a pop-up window, the lack of Tcl will cause it to crash. Now for Windows (which is what I am assuming you are using), there is free ActiveTCL by ActiveState. Here is the link for that app.

There is also a video for the install of this package. Trying installing it and then re-running idle. If that does not work, then try reinstalling python and running 'pip install tkinter' to install the python interface to Tcl. The run idle again after doing these steps.