Python Py2exe给定错误

Python Py2exe给定错误,python,tkinter,Python,Tkinter,我正在尝试将tkinter打包到exe应用程序中,并收到以下错误消息。请帮忙 setup( options ={'py2exe':{'bundle_files':3,'compressed':True}}, zipfile = None, console = ['SApp.py']) To exit: use 'exit', 'quit', or Ctrl-D. An exception has occurred, use %tb to see the full traceback.

我正在尝试将tkinter打包到exe应用程序中,并收到以下错误消息。请帮忙

setup(
 options ={'py2exe':{'bundle_files':3,'compressed':True}},
 zipfile = None,
 console = ['SApp.py'])
 To exit: use 'exit', 'quit', or Ctrl-D.
 An exception has occurred, use %tb to see the full traceback.

 SystemExit: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
 or: -c --help [cmd1 cmd2 ...]
 or: -c --help-commands
 or: -c cmd --help

 error: option -f not recognized

尝试使用-F而不是-F来编译单个文件。

这就是全部吗?看起来您在某处调用了一个参数-f,但在本上下文中无法识别它#PyNEwbie代码中没有参数-f..并且在ipython中运行时代码运行得非常完美