windows 如何制作一个可以安装的软件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6691193/
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
How can we make a software which can be installed?
提问by lamwaiman1988
I have no experience in making a program into an software. I want to mimic a software out there because the software is simple and yet not free. I want to use python as the language chosen. So what is the process/steps to make an software using python? The software should be okay in Windows.
我没有将程序制作成软件的经验。我想模仿那里的软件,因为该软件很简单,但不是免费的。我想使用 python 作为选择的语言。那么使用python制作软件的过程/步骤是什么?该软件在 Windows 中应该没问题。
I only have experience in making a standalone program. I think we need to make the program install to the computer. But I have no idea how to do it.
我只有制作独立程序的经验。我认为我们需要将程序安装到计算机上。但我不知道该怎么做。
回答by mac
Not sure I got what you are asking for either, but among the most typical ways to create installations or executables there are:
不确定我是否得到了您的要求,但在创建安装或可执行文件的最典型方法中有:
- Distutils(part of the standard library)
- PyInstaller(cross-platform)
- Py2Exe(windows only)
- Distutils(标准库的一部分)
- PyInstaller(跨平台)
- Py2Exe(仅限 Windows)
HTH!
哼!
回答by Lauritz V. Thaulow
I'm not quite certain I understand what you're asking, but I'm guessing you want a way to create an installable and uninstallable windows program from a python program. If so, a combination of py2exeand NSISis one way to go.
我不太确定我明白你在问什么,但我猜你想要一种从 python 程序创建可安装和可卸载的 Windows 程序的方法。如果是这样,py2exe和NSIS的组合是一种方法。
Edit:You're probably better off using one of mac's suggestions. The above way is likely unnecessarily complicated.
编辑:您最好使用 mac 的建议之一。上述方式可能不必要地复杂。