我正在尝试使用cx_freeze编译程序,并且.exe在我的Windows 10计算机上运行,但是当在另一台Windows 7计算机上进行测试时,该过程将显示在任务管理器中,但不会打开终端窗口。这是我的setup.py,我用" python setup.py build"
来调用它import sys
from cx_Freeze import setup, Executable
build_exe_options = {
"include_msvcr": True #skip error msvcr100.dll missing
}
exe=Executable(
script="xboxNAO.py",
icon="icon.ico",
base=None
)
includefiles=[]
includes=[]
excludes=[]
packages=[]
setup(
version = "0.0",
description = "Nao XBOX Control",
author = "MFC",
name = "Naobox",
options = {'build_exe': {'excludes':excludes,'packages':packages,'include_files':includefiles}},
executables = [exe]
)