2015-09-26 95 views
0

我有一個tkinter創建的GUI的計算器程序。我要打包到這一個GUI,但在命令提示符下使用與tkinter一起使用py2exe來創建一個獨立的.exe

py -3.4 -m py2exe.build_exe calc_gui.pyw -p tkinter -b 0 

,我得到得到錯誤信息:

The following modules require a minimum of bundle_files option, 
otherwise they will not work (currently bundle_files is set to 0): 
     tkinter: 2 

Please change the bundle_files option and run the build again. 
Build failed 

我在想,如果有辦法,我可以打包到這使用py2exe作爲使用-b 2或3的作品精細單個.exe,但他們不產生獨立的.exe的

順便說一句,這是在Python 3(這是由py2exe支持)

+1

您是否嘗試過錯誤信息告訴您要做什麼? –

+0

然後它不是捆綁到一個單一的exe文件中,它周圍大約有8個文件。 –

回答

1

更改build_bundle option to one。這將把它捆綁成一個文件。

+0

錯誤是說tkinter需要將它設置爲2作爲最小值。我通過最終使用nuitka解決了這個問題 –

+0

@SovietKetchup好的工作 –

相關問題