我有一个使用Tkinter的基本Python脚本。
from Tkinter import Tk
from tkFileDialog import askdirectory
Tk().withdraw()
print askdirectory()
使用PyInstaller编译我的脚本后,我试图在没有安装Python的Windows 7(64位)计算机上运行程序。
结果出现了以下错误:
Can't find a usable init.tcl in the following directories: [list of directories]
This probably means that Tcl wasn't installed properly
为什么使用PyInstaller编译后,我的脚本找不到init.tcl文件?