|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
问题:python 3.10.6自带的 IDLE打不开。python310\Lib\idlelibe文件内的 idle.py ; idle.bat 也打不开。单独启动python.exe能打开。
多次尝试过重启电脑,重装python,修复repair,还装过3.9;3.8版本,手动添加过环境变量,都没成功。
还尝试过从另外一台电脑上(该电脑上python IDLE能用),把安装后的“python310”文件拷贝过来覆盖粘贴在这台电脑上,还是打不开IDLE。
下面是w+r ,cmd 窗口运行idle.py的内容。看下能看出是什么问题,怎么解决?
C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\idlelib>idle.py
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\idlelib\idle.py", line 13, in <module>
from idlelib.pyshell import main # This is subject to change
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\idlelib\pyshell.py", line 60, in <module>
from idlelib.run import idle_formatwarning, StdInputFile, StdOutputFile
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\idlelib\run.py", line 94, in <module>
tcl = tkinter.Tcl()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\tkinter\__init__.py", line 2401, in Tcl
return Tk(screenName, baseName, className, useTk)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Lib\tkinter\__init__.py", line 2299, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
{d:\Program Files (x86)\CSR\BlueSuite 2.6.9} C:/Users/Administrator/AppData/Local/Programs/Python/Python310/lib/tcl8.6 C:/Users/Administrator/AppData/Local/Programs/Python/lib/tcl8.6 C:/Users/Administrator/AppData/Local/Programs/lib/tcl8.6 C:/Users/Administrator/AppData/Local/Programs/Python/library C:/Users/Administrator/AppData/Local/Programs/library C:/Users/Administrator/AppData/Local/Programs/tcl8.6.12/library C:/Users/Administrator/AppData/Local/tcl8.6.12/library
This probably means that Tcl wasn't installed properly.
|
|