0
我的Python GUI不能再打開了!IDLE(Python GUI)2.7.8停止在Windows7上工作
我知道這個主題還有其他問題,但我解決不了我的問題!
我嘗試卸載它並安裝它,但沒有打開。
我運行C:\ python27 \ python.exe -m idlelib.idle在cmd中查找錯誤,這裏是CMD輸出,
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Python27\Lib\idlelib\run.py", line 5, in <module>
import socket
File "D:\python\lib\socket.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同時用戶和系統變量,但它沒有解決我的問題!
那麼,我該如何讓我的IDLE再次工作呢?
什麼是'D:\ python \ lib'在你的路徑上做什麼?這個'socket.py'文件是無效的,並且會破壞你的Python設置。 – 2014-11-22 21:56:14
我記得我在Python初期就遇到過這個問題。我剛剛重新啓動了我的IDLE,它工作得很好。 – HarryCBurn 2014-11-22 23:19:28
@Martijn彼得斯,謝謝。我將這個文件夾添加到我的pythonpath中,將我自己的庫放在這裏!和socket.py有一些問題,我刪除它,現在它工作正常。 – user3806649 2014-11-23 15:58:18