IDLE (Python GUI) 2.7.8 停止在 windows7 上工作



我的Python GUI不再打开了!

我知道这个话题还有其他问题,但我无法解决我的问题!

我尝试卸载它并安装它,但它没有打开。

我在cmd中运行C:\python27\python.exe -m idlelib.idle查找错误,这是cmd输出,

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:Python27Libidlelibrun.py", line 5, in <module>
    import socket
  File "D:pythonlibsocket.py", line 8
    c, addr = s.accept() # Establish connection with client.
    ^
IndentationError: expected an indented block 

然后 IDLE 打开并显示子进程启动错误:

IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall is blocking the connection. 

我还添加了TCL_LIBRARY来指示用户和系统变量的 Python 路径 C:\Python27\tcl\tcl8.5,但这并没有解决我的问题!

那么,如何使我的空闲再次工作呢?

文件D:pythonlibsocket.py不是标准库的一部分,而是正在导入而不是普通模块。该文件也已损坏,以多种方式破坏了您的 Python 设置。

重命名它或从配置变量中删除整个目录PYTHONPATH

最新更新