Python py2exe packaging tool details, pythonpy2exe Packaging
Download the corresponding Python version of py2exe. You can use this tool to package your own program into an exe file.
To use this tool, you need to write a setup for packaging. py file (the name can be set by yourself, not necessarily setup. py), and then cd to the directory of the file on the command prompt interface, and execute the command "python setup. "py py2exe" can be packaged.
The following is a reference written by other netizens for your reference:
# _ * _ Coding: UTF-8 _ * _ import py2exefrom distutils. core import setupshortdes = ['encoding', 'enabings. * '] options = {'py2exe': {'compressed ': 1, 'optimize': 2, 'ascii': 1, 'shortde': shortde, 'bundle _ files': 1, 'dll _ excludes ': ['msvcp90. dll '],} setup (version = '1. 0.0 ', description = 'search file', name = 'search file', options = options, zipfile = None, windows = [{'script': 'core \ tool. py', # main file path of the program to be packaged 'icon _ resources': [(1, 'Resource \ icon. ico ')], # path of the program icon}],)
The above Python py2exe packaging tool is a small part of the content to share with you, I hope to give you a reference, but also hope you can support a lot of help home.