1、尽量将所有要执行的py文件放在一个大文件夹下(里面允许有多个文件夹)
2、命令行输入pyi-makespec main.py 或者 pyi-makespec -F main.py(main.py为Python...,写完整路径,[‘aaa.py’, ‘bbb.py’, ‘c:\\user\\ccc.py’]
a = Analysis(['pin.py'],
pathex=['F:\\python_work...= PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
第四个参数,datas=[]。...[('C:\\project\\test\\images','images'),('C:\\project\\test\\EventLogs','EventLogs')]
datas:
第一个参数是Python...= PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,