我尝试使用cx_Freeze为我的程序制作一个msi使用python3.5(setup.py bdist_msi,并获得这个massege
截图:
这是我的setup.py:
import sys
import os
from cx_Freeze import setup, Executable
build_exe_options = {"optimize": 2,"include_files": ["Frame.py"]}
base = None
if sys.platform == 'win32':base = 'Win32GUI'
os.environ['TCL_LIBRARY'] = r'D:\Python35\tcl\tcl8.6'
os.environ['TK_LIBRARY'] = r'D:\Python35\tcl\tk8.6'
executables = [Executable(script='Frame.py',base=base,)]
你可以帮帮我吗?
答案 0 :(得分:0)
尝试删除基数之后的额外,
,在此行中:
executables = [Executable(script='Frame.py',base=base,)]
成功:
executables = [Executable(script='Frame.py',base=base)]