cx_freeze在本地目录中查找子模块

时间:2017-08-24 13:41:48

标签: python python-3.x cx-freeze

我正在用Cx_freeze编译我的python脚本,它正在我的机器本地直接寻找子进程:

Error code

下面是我用来编译的代码:

from cx_Freeze import setup, Executable
import subprocess

exe=Executable(
     script='makeCSV.py',
     base='Win32Gui',
     )
includefiles=[]
includes=[]
excludes=[]
packages=['subprocess']
setup(

     version = '0.0',
     description = 'No Description',
     author = 'Name',
     name = 'MakeCSV',
     options = {'build_exe': 
{'excludes':excludes,'packages':packages,'include_files':includefiles}},
     executables = [exe]
     )

0 个答案:

没有答案