2011-11-25 61 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的第一个答案