python打包后exe报错 Unhandled exception in script的解决方法 1:如果执行命令pyinstaller -F -w xxx.py(xxx是py的文件名)生成exe文件,执行时报错 2:选择执行命令pyinstaller -D xxx.py打包