1. 安装stackless Python2.5
地址:
http://www.stackless.com/binaries/python-2.5.2-stackless.msi 注意: 如果需要在Vista系统安装, 必须使用2.6版本, 不然将会出现ntdll.dll运行错误.
2. 下载stackless Python2.5依赖包, 解压到stackless Python2.5的安装目录下. 将解压后目录下的
地址:
http://www.stackless.com/binaries/stackless-252-export.tar.bz23. 下载msvcr71d.dll, 解压到stackless Python2.5的安装目录下(2.6.2版本忽略此步).
地址:
http://www.dll-files.com/dllindex/msvcr71d.zip?0VHdRFZLlX4. 将stackless Python2.5的include, lib目录添加到VC++ Directories的include files和Library files中(Tools/Options../Projects and Solutions/VC++ Directories)
注: 如果你安装的是stackless Python2.6, 则还需要下载VC2008的运行库(Microsoft Visual C++ 2008 Redistributable Package)
地址:
http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=zh-cn5. 打开控制台, 输入c:\Python26\Lib\idlelib\idle.py(假设Python安装在C盘下), 如果IDLE (Python GUI)没有启动.并且在控制台中输出以下信息 就需要将Python26\tcl文件夹下的
tcl8.5和tk8.5复制到Python26\Lib文件夹下.
self.tk = _tkinter.create(screenName, baseName, className, interactive, want
objects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
或者
self.tk = _tkinter.create(screenName, baseName, className, interactive, want
objects, useTk, sync, use)
_tkinter.TclError: Can't find a usable tk.tcl in the following directories: