To package a Python program as an EXE file, the tools you need to use are Pyinstaller
Pyinstaller is a multi-platform Python program packaged as EXE free tool
Install Pyinstaller:
1, in windows, Pyinstaller relies on pywin32,pypiwin32 (Linux,mac ignored)
If you are using PIP or Easy_install when you install Pyinstaller, you only need to manually install Pywin32 Pypwin32
Install command:pip install Pywin32
2, install Pyinstaller using PIP
Install command: Pip install Pyinstaller
If the installation environment does not have a network can not use PIP installation, you can go to the official website http://www.pyinstaller.org/, download and install.
Note: Manual installation requires installation of PYPIWIN32
Use of 3,pyinstallet
Package Command: pyinstallet-f py file path
After the package is successful, the Dist folder is the EXE.
Tip:-I can replace the default ICO icon
Command: pyinstallet-f-i ico picture path py file path
To package a Python program as an EXE method