【发布时间】:2017-04-20 14:07:17
【问题描述】:
我正在尝试使用 cx_Freeze 编译我的 python 脚本,这是我的安装文件:
import cx_Freeze
import sys
import matplotlib
import os
base = None
if sys.platform == 'win32':
base = "Win32GUI"
os.environ['TCL_LIBRARY'] = r'C:\\Python35\\tcl\\tcl8.6'
os.environ['TK_LIBRARY'] = r'C:\\Python35\\tcl\\tk8.6'
executables = [cx_Freeze.Executable("HomeScreen.py", base=base,
icon="icon.png")]
cx_Freeze.setup(
name = "LeagueBoost",
options = {"build_exe":{"packages": ["sqlite3","requests","time","sys","os","statistics","matplotlib","random","collections"],
"include_files": ["Assets", "LeagueBoost_v1.py","LBRun.py","graphSetup.py","profilepage.py","Assets_rc.py"]}},
version = "1",
executables = executables
)
但是当我给 cmd 命令C:/python35/python.exe 时,它到达copying C:\python35\python35.dll -> build\exe.win-amd64-3.5\python35.dll 它会弹出“python 已停止工作”
【问题讨论】: