cx_freeze程序无法在其他计算机上运行

时间:2017-07-26 15:16:49

标签: python python-2.7 cx-freeze

我正在尝试使用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]
     )

0 个答案:

没有答案