使用cx_Freeze构建msi:ValueError:FCI错误6

时间:2017-08-29 04:30:28

标签: python

我尝试使用cx_Freeze为我的程序制作一个msi使用python3.5(setup.py bdist_msi,并获得这个massege

截图:

enter image description here

这是我的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,)]
你可以帮帮我吗?

1 个答案:

答案 0 :(得分:0)

尝试删除基数之后的额外,,在此行中:

executables = [Executable(script='Frame.py',base=base,)]

成功:

executables = [Executable(script='Frame.py',base=base)]