pyi_makespec -F main.py 生成main.spec文件 将其中的binaries=[] 修改为binaries=[('tools','tools')] 之后在使用pyinstaller进行打包