Prior to writing for creating, linking Jenkins slave is a Python script, in order to make the partner is not installed Python environment can also be used directly, so it needs to be exe executable file directly executable.
First, install pyinsatller
In the cmd console enter the following command to install it.
pip install pyinstaller
Second, the use pyinstaller packaged Python program
Common parameters:
Most of the above parameters are yet actual use, this needs only to be the most simple packaging,
Command to use is:
pyinstaller -F xxxx.py
The command needs to be run in the directory where the file Python, xxxx.py for the need to package documents;
After the run is completed dist file in the current directory folder to get packaged exe file.