【发布时间】:2017-07-03 12:01:02
【问题描述】:
我用 cx_Freeze(3.5.0 64 位)构建了一个程序,我的设置看起来像这样
from cx_Freeze import setup, Executable
setup(name='TOOL11',
version ='0.1',
description='Easily find best float combination',
executables = [Executable("TOOL11.py")])
但是当我运行 build 文件夹中的 tool11.exe 时,cmd 会非常快速地打开和关闭。我记录了这件事并逐帧播放以查看错误:https://i.gyazo.com/fe6ec4b8743e2348c48ee927ac8c1284.png 似乎错误是 google 模块未安装在构建文件夹中。看到这一点,我将 import google 添加到我的 TOOL11.py 并尝试再次构建。我尝试再次运行 exe,但我得到了同样的错误。
我能做些什么来解决这个问题吗?谢谢
【问题讨论】:
标签: python python-3.5