【发布时间】:2013-12-03 21:07:47
【问题描述】:
首先,技术方面的东西: 蟒蛇:3.3 cx_freeze:4.3.2 我查看了几个设置,但一无所获。到目前为止,我只得到了一个非常快速关闭的 Python 命令行,并且 sigh,没有 exe。 setup.py:
from cx_Freeze import setup, Executable
executables = [
Executable("Swiss Rounds.py", appendScriptToExe=True, appendScriptToLibrary=False)
]
buildOptions = dict(
create_shared_zip = False)
setup(
name = "hello",
version = "0.1",
description = "the typical 'Hello, world!' script",
options = dict(build_exe = buildOptions),
executables = executables)
谢谢大家!
【问题讨论】:
-
“一个很快结束的视频”是什么意思?你在哪个平台上运行这个?你想用什么命令来运行这个脚本?输出是什么?
-
很抱歉,应该改写 Python 命令行。想找个视频
-
您还没有告诉我们您用于运行脚本的确切步骤。
-
从命令提示符运行 exe 以查看运行时发生的情况 - 如果双击它,Windows 会在程序退出后立即关闭命令行。
标签: python python-3.x python-3.3 cx-freeze