1. 首页
  2. 数据库
  3. 其它
  4. Python 打包问题:Failed to execute script app

Python 打包问题:Failed to execute script app

上传者: 2021-01-15 05:55:02上传 PDF文件 52.54KB 热度 51次
网上有很多教程关于怎么用pyinstaller,这里不做介绍,不懂也可以看pyinstaller帮助:pyinstaller –help 问题描述 在精简pyinstaller打包后的exe时,出现 Failed to execute scripte app 问题。无法定位到具体问题。 使用命令 出现问题命令: pyinstaller -Fw app.py 然而,通过vscode运行,或者python app.py并没有报错,推测可以打包过程中有些依赖没有添加。 但是通过上述命令运行无法获取错误日志。 获取错误日志 去掉 -Fw 重新打包 pyinstaller app.py 命令行调用
用户评论