简体   繁体   English

Py2App:需要包含文件,但文件太大

[英]Py2App: File Needs to Be Included, but it is Too Large

At the moment, I'm using py2app to convert python scripts to a standalone application. 目前,我正在使用py2app将python脚本转换为独立的应用程序。 However, my scripts require a 2GB unix executable. 但是,我的脚本需要2GB的Unix可执行文件。 Py2App isn't able to process a file that large as an included file or resource, as it produces an error in the creation of the standalone file. Py2App无法处理与包含的文件或资源一样大的文件,因为它会在创建独立文件时产生错误。 Is there anyway I can include this file in my standalone app? 无论如何,我可以在独立应用程序中包含此文件吗?

Any advice or suggestions would be appreciated. 任何意见或建议,将不胜感激。 Thank you very much. 非常感谢你。

I have more experience with Pyinstaller, but do you have to put the executable through Py2App? 我对Pyinstaller有更多的经验,但是您是否必须通过Py2App放置可执行文件? Might it be possible to package it with your executable in the same directory so it will be found and run? 可能将它与可执行文件打包在同一目录中,以便找到并运行它吗? Is producing a single file very important, or could you include it in a directory with other dependencies? 生成单个文件是否非常重要,还是可以将其包含在具有其他依赖项的目录中?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM