使用 Python 3.1 制作便携式(exe)?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1505783/
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
Making a portable (exe) with Python 3.1?
提问by Carl Norum
Is there a way to make a portable/stand-alone exe for python apps?
有没有办法为 python 应用程序制作便携式/独立的 exe?
I've read about p2exe but it doesn't support the latest version. I'm reluctant to go to 2.6 because I'd rather stay with the latest version instead of worrying about incompatibilities as soon as 2.6 becomes too outdated.
我读过关于 p2exe 但它不支持最新版本。我不愿意去 2.6,因为我宁愿留在最新版本而不是担心 2.6 变得太过时时不兼容。
回答by Carl Norum
cx_freeze has worked for me. Here's a link. The page claims to support 3.1. Good luck!
cx_freeze 对我有用。这是一个链接。该页面声称支持 3.1。祝你好运!