The following small series for everyone to bring a Python py2exe packaging tools detailed. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
Download the Python version of Py2exe and use this tool to package your own programs as EXE files.
Use this tool to write a setup.py file for packaging (name can be self-determined, not necessarily setup.py), write well after the command prompt interface CD to the directory of this file, execute the command "python setup.py py2exe" can be packaged and finished.
The following is their own reference to other users to write, for reference:
# _*_ Coding:utf-8 _*_import py2exefrom distutils.core Import setupincludes = [' Encoding ', ' encodings.* ']options = {' py2e Xe ': {' compressed ': 1, ' optimize ': 2, ' ASCII ': 1, ' includes ': Includes, ' 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 ', # The path to the main files of the program that needs to be packaged ' icon_resources ': [(1, ' Resource\\icon.ico ')], # Picture path of the icon of the program }], )