我有一個程序,我用py2exe轉換爲exe。之後,我嘗試使用Inno Setup進行安裝。我像包括.dll文件,.pyd,.GIF,.WAV,在TLC文件夾(TCL8.5,tk8.5)等所有必要的文件,但安裝程序後,它給了我這個錯誤:Inno安裝程序編譯後的init.tcl Python錯誤
C:\Program Files (x86)\test>test.exe
Traceback (most recent call last):
File "test.py", line 9359, in <module>
File "test.py", line 11, in __init__
File "Tkinter.pyc", line 1745, in __init__
_tkinter.TclError: Can't find a usable init.tcl in the following directories:
{C:/Program Files (x86)/lib/tcl8.5} {C:/Program Files (x86)/lib/tcl8.5} C:/l
ib/tcl8.5 {C:/Program Files (x86)/library} C:/library C:/tcl8.5.2/library C:/tcl
8.5.2/library
This probably means that Tcl wasn't installed properly.
我怎樣才能解決這個問題?提前致謝。
那麼'init.tcl'安裝在哪裏? – 2014-11-03 14:41:04
@DonalFellows與其他文件一樣,它也安裝在Program Files(x86)中。這是在tcl8.5 – Duardo 2014-11-03 16:05:35