我使用pyinstaller制作程序。 我命令“ pyinstaller --clean -F SysTrader.spec 但是,当程序执行时,进程继续增加1
ex> enter image description here
下面,我使用了“ SysTrader.spec”规范文件。
block_cipher = None
a = Analysis(['SysTrader.py'],
pathex=['C:\\Users\\user\\Desktop\\OneButton_1.0.1'],
binaries=[],
datas=[('C:\\Users\\user\\Desktop\\OneButton_1.0.1\\resources\\OneButton_ui.ui','./resources'), ('C:\\Users\\user\\Desktop\\OneButton_1.0.1\\resources\\OkCancelDialog_ui.ui','./resources'), ('C:\\Users\\user\\Desktop\\OneButton_1.0.1\\logs\\program_log','logs') , ('C:\\Users\\user\\Desktop\\OneButton_1.0.1\\logs\\trade\\trade_log','logs\\trade')],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
exclude_binaries=True,
name='SysTrader',
debug=False,
strip=False,
upx=True,
console=True )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,