简体   繁体   English

如何为python程序创建Windows安装程序?

[英]How to create a windows installer for python program?

I've found several answers for this subject on stackoverflow but I'd like to reiterate. 我在stackoverflow上找到了关于该主题的几个答案,但我想重申一下。 I created a small gui application in python that uses Tkinter (if that matters), uses icons and separate text files with configuration rules and other resources. 我在python中创建了一个小gui应用程序,该应用程序使用Tkinter(如果需要的话),使用图标以及带有配置规则和其他资源的单独文本文件。

So basically, there is one executable .py script, a bunch of text files and gif icons. 因此,基本上,有一个可执行的.py脚本,一堆文本文件和gif图标。 I need to create an installer for windows. 我需要为Windows创建一个安装程序。 I have never tried to make an installer before, but considering using NSIS. 我以前从未尝试过制作安装程序,但考虑使用NSIS。 What installer serves best for such setup? 哪种安装程序最适合此类设置?

I want to make an installation file for my python source code" 我想为我的python源代码制作一个安装文件”

You have to use NSIS, InnoSetup, BitRock Installer, IzPack or equivalent to produce a platform installer. 您必须使用NSIS,InnoSetup,BitRock安装程序,IzPack或等效程序来生成平台安装程序。 So you have to take the binary result produced on the first part and package it for os distribution. 因此,您必须采用第一部分产生的二进制结果并将其打包以进行os分发。 Almost all the installer systems are thinked for Windows systems. 几乎所有安装程序系统都考虑用于Windows系统。 Cross platform : Zero Install, IzPack ... If you use IzPack you can have a cross platform installer paying the price of including a jvm. 跨平台:零安装,IzPack ...如果您使用IzPack,则可以有一个跨平台安装程序来支付包含jvm的费用。

And i Believe This >> HELP Can be Light of Your Way ;) 我相信这>> HELP可以是你的路的光;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM