windows 创建自包含的 Python 应用程序
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/203487/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Creating self-contained python applications
提问by changelog
I'm trying to create a self-contained version of pisa(html to pdf converter, latest version), but I can't succeed due to several errors. I've tried py2exe
, bb-freeze
and cxfreeze
.
我正在尝试创建一个独立的pisa版本(html 到 pdf 转换器,最新版本),但由于几个错误我无法成功。我试过了py2exe
,bb-freeze
而且cxfreeze
。
This has to be in windows, which makes my life a bit harder. I remember that a couple of months ago the author had a zip file containing the install, but now it's gone, leaving me only with the python dependent way.
这必须在 windows 中,这让我的生活变得更加艰难。我记得几个月前作者有一个包含安装的 zip 文件,但现在它不见了,只剩下 python 依赖方式。
How would you work this out?
你会如何解决这个问题?
回答by dwestbrook
Check out pyinstaller, it makes standalone executables (as in one .EXE file, and that's it).
查看pyinstaller,它生成独立的可执行文件(就像在一个 .EXE 文件中一样,就是这样)。