py2exe:减少库存档的大小 [英] py2exe: Reduce size of the library archive

查看:51
本文介绍了py2exe:减少库存档的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚创建了我的第一个 py2exe 可执行文件,并注意到在 EXE 中,创建了一个大小约为 1.4 MB 的 ZIP 文件.

I just created my first py2exe executable and noticed that with the EXE, there is a ZIP file created with the size of around 1.4 MB.

我的问题是,我可以减小它的大小吗,还是预计使用 py2exe 生成的 EXE 的典型大小为 ~ 4 MB(这意味着所有文件:python2.6dll、library.zip)

My question is, can I reduce the size of this or is it expected that the typical size of an EXE generated with py2exe will be ~ 4 MB (that means with all the files: python2.6dll, library.zip)

推荐答案

对缩小尺寸问题的简短回答是肯定的.我不会在这里提供冗长的答案,而是将您引导至 py2exe 的 OptimizingSize 维基页面.

Short answer to your size reduction question is yes. Long answer I am not going to provide here, but instead direct you to py2exe's OptimizingSize wiki page.

我希望这会有所帮助;)

I hope this helps ;)

这篇关于py2exe:减少库存档的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆