cx_Freeze python单个文件? [英] cx_Freeze python single file?
问题描述
我已经使用cx_Freeze已有一段时间了,我真正想做的一件事是:将所有文件放入一个我可以分发的可执行文件中。将包含30个文件的文件夹发送到同一目录中并不是很方便。我该怎么做?
谢谢。
I've been using cx_Freeze for a while now and there is one thing I've really wanted to do: put ALL files into ONE executable that I can distribute. It's not really user-friendly to send around a folder filled with 30 files, all in the same directory. How can I accomplish this? Thanks.
推荐答案
bbfreeze
不是吗
此处的教程: http://www.blog.pythonlibrary.org/2010/08/19/a-bbfreeze-tutorial-build-a-binary-series/
实际上,使用python zipimport滚动自己并不困难 http://docs.python.org/library/zipimport.html
It's actually not that hard to roll your own with Python zipimport http://docs.python.org/library/zipimport.html
您可能更喜欢使用UPX之类的东西,通用解决方案,而不仅仅是Python。 http://upx.sourceforge.net/
You may prefer to use something like UPX which is a more general solution, not Python only. http://upx.sourceforge.net/
这篇关于cx_Freeze python单个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!