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.bz2
3. 下載msvcr71d.dll, 解壓到stackless Python2.5的安裝目錄下(2.6.2版本忽略此步).
地址: http://www.dll-files.com/dllindex/msvcr71d.zip?0VHdRFZLlX
4. 將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-cn
5. 開啟控制台, 輸入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:
vibilin 2009-08-29 09:32 發表評論