2011-11-25 62 views
3

我當前從olldbg轉換爲ImmunityDebugger,並意識到我的IDLE沒有再啓動。 Immunity Debugger自己安裝了Python的副本(最新版本:2.7),所以我認爲它不會改變任何重要的東西,因爲我已經安裝了alerady 2.7。安裝Immunity Debugger後,Python IDLE無法啓動

如果我要開始IDLE手動(cmd -> "python.exe -m idlelib.idle")Cmd的先生告訴我下面的:

IDLE can't import Tkinter. Your Python may not be configured for Tk.

然後我在控制檯運行蟒蛇想手動導入Tkinter的:

>>> import Tkinter 
Traceback (most recent call last): 
File "<stdin>", line 1, in <module> 
File "C:\Python27\lib\lib-tk\Tkinter.py", line 38, in <module> 
import FixTk 
File "C:\Python27\lib\lib-tk\FixTk.py", line 65, in <module> 
import _tkinter 

ImportError: DLL load failed: %1 not a valid win32 application

任何想法什麼可能被錯誤配置? (IM使用Windows 7 64位家庭普通版) 尼古拉

+0

在Python27 \ DLL中有'_tkinter.pyd'嗎? tcl85.dll,tk85.dll?有沒有Python27 \ tcl目錄? – eryksun

+0

非常感謝您的幫助。它應該是。 (所有的建議都是積極的 - 沒有DLL或目錄缺失)。 tcl目錄也是'full':http://oi43.tinypic.com/2vir0j5.jpg和http://oi43.tinypic.com/v7grya.jpg –

+0

C:\ Python27 \ DLLs在你的'sys.path '? – eryksun

回答

0

的安裝可能搞砸PYTHONPATH,嘗試使用virtualenv, 比你在它與pip安裝軟件包。總是推薦。

0

Immunity Debugger可能會設置TCL_LIBRARY和TK_LIBRARY環境變量。請參閱Idle won't start的第一個答案