使用bundle_files = 1与py2exe不工作 [英] Using bundle_files = 1 with py2exe is not working

查看:158
本文介绍了使用bundle_files = 1与py2exe不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

经过一些很大的挫折,我做到了!我将django应用程序转换为exe,作为Windows上的单独独立应用程序运行(使用cherrypy作为WSGI服务器)
但是当我尝试设置py2exe的选项bundle_files到1(即在生成的exe中捆绑python解释器Python25.dll)生成的exe崩溃与一个消息谈论kernel32.dll



但是当我使用bundle_file=2时,生成的exe就像一个魅力,但是必须将Python25.dll作为一个单独的文件除此之外,



任何人都有类似的行为,可以告诉我我失踪了吗?



谢谢! :)

解决方案

这篇文章谈到使用py2exe获取单个exe文件。



py2exe - 生成单个可执行文件



如果你发布一些代码,我会看看,你的错误信息将有助于。


After some big frustration I did it! I converted my django app to an "exe" one to run as a single standalone app on windows (using cherrypy as a WSGI server) But When I try to to set py2exe's option "bundle_files" to "1" (i.e. bundle the python interpreter Python25.dll inside the generated exe) the generated exe crashes with a message talking about kernel32.dll

But when I use "bundle_file" = "2", the generated exe is runing like a charm, but must -of course- have Python25.dll as a separate file beside it.

Anyone experienced a similar behavior, can you please tell me what I'm missing?

Thank you! :)

解决方案

this post talks all about using py2exe to get a single exe file.

py2exe - generate single executable file

If you post some code i'll take a look, and your error message will help to.

这篇关于使用bundle_files = 1与py2exe不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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