问题一:failed to execute script pyi_rth_pkgres 解决方法: pip uninstall pyinstaller pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip 问题二:“failed to execute script xxx” 这里的xxx是你的文件名 解决方法:将源码涉及的资源配置文件复制到exe文件下