使用pyinstaller 打包程序后,运行Failed to execute script MainPage 报错,解决办法
2017-09-20 23:37
671 查看
使用pyinstaller 打包程序后,运行Failed to execute script MainPage 报错
原因是程序使用pyqt的相关ui文件和其他资源文件未和应用程序放在同一个目录。
打包脚本:
pyinstaller -F -c -p
D:…\com\res\picture;
D:…\com\src;
D:…\com\src\util;
D:…\com\src\page\mainpage;
MainPage.py –noconsole
打包后这样使用即可:
原因是程序使用pyqt的相关ui文件和其他资源文件未和应用程序放在同一个目录。
打包脚本:
pyinstaller -F -c -p
D:…\com\res\picture;
D:…\com\src;
D:…\com\src\util;
D:…\com\src\page\mainpage;
MainPage.py –noconsole
打包后这样使用即可:
相关文章推荐
- jar文件运行时:Failed to load Main-Class manifest attribute from ......解决办法
- jar文件运行时:Failed to load Main-Class manifest attribute from ......解决办法
- 遇到了IAR烧写程序出错,附解决办法The stack plug-in failed to set a breakpoint on "main"
- 使用pyinstaller打包成exe之后运行闪退,调试后报出 Unable to acquire Oracle environment handle错误解决方法
- “failed to excute script xxx” PyInstaller 打包python程序为exe文件过程错误
- 使用“一键清理垃圾”导致.Net程序无法运行的解决办法
- 在Eclipse中运行Android程序报 Failed to write core dump. Minidumps are not enabled by default on client versions of Windows 解决方法
- C:\Windows\system32\MSVCR100.dll 没有被指定在 Windows 上运行,或者它包含错误。请尝试使用原始安装媒体重新安装程序,或联系您的系统管理员或软件供应商以获取支持。【解决办法】
- 运行出现Failed to access IIS metabase错误解决办法.
- 问题解决办法总结_Failed_to_execute_/linuxrc
- vc6.0编译运行程序提示could not execute :Access denied (win32 error 5)解决办法
- [Android]使用ProGuard遇到“conversion to Dalvik format failed with error 1”错误的解决办法
- 使用Page.ClientScript.RegisterClientScriptBlock出现缺失")"解决办法
- 运行 Visual Studio.NET 提示“Failed to create .NET Frameworks ...”解决办法
- view使用链接克隆创建VM时出现failed to join the domain的解决办法
- 使用ProGuard遇到“conversion to Dalvik format failed with error 1”错误的解决办法
- 在win7下使用Delphi调程序的时候突然提示“Unable to create process”,解决办法如下
- 安装.NET2.0后运行出现Failed to access IIS metabase错误解决办法.
- [Android]使用ProGuard遇到“conversion to Dalvik format failed with error 1”错误的解决办法
- 使用ProGuard遇到“conversion to Dalvik format failed with error 1”错误的解决办法