Home > other >  About python IDLE question solution could not be opened, please collect ~!
About python IDLE question solution could not be opened, please collect ~!

Time:11-25

According to the online there are three kinds of method:
1, reinstall python or repair install
2, put the disk C Users/under "your username". Idlerc configuration files deleted
Start the "run" dialog
Type "% USERPROFILE % \. Idlerc", click "sure

There will be open a folder, delete all files folder, then open the IDLE (Python GUI) can run normally,

3, according to the former two are no problem, please use the third method to solve, in python installation folder command line running idle. Py, see what problem cause cannot run
D: \ Python26 & gt; Python lib/idlelib/idle. P y -- -- -- -- -- -- -- -- -- -- -- -- -- running
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- - here are the results
Traceback (the most recent call last) :
The File "lib/idlelib/idle. Py", line 21, in
Idlelib. PyShell. The main ()
The File "D: \ Python26 \ lib \ idlelib \ PyShell py", line 1386, the main in
The root=Tk (className="Idle")
The File "D: \ Python26 \ lib \ lib - tk \ Tkinter py", line 1643, in __init__
Self. Tk=_tkinter. Create (screenName, the baseName className, interactive, wantobjects, useTk, sync, use)
_tkinter. TclError: Can 't find a usable init. TCL in the following directories:
{D: \ usr \ ov \ bin} D:/Python26/lib/tcl8.5 D:/lib/tcl8.5 D:/lib/tcl8.5 D:/library D:/library D:/tcl8.5.2/library
So modify the system variable TCL_LIBRARY is: D: \ Python26 \ TCL \ tcl8.5 can
TCL hint to find files, so you need to add two TCL in the environment variable, so the modified system variable TCL_LIBRARY: D: \ Python26 \ TCL \ tcl8.5 solved ~ ~ ~ ~!
  • Related