I believe a lot of friends who learn to use Python want to package Python programs into an EXE file, which avoids the need to install the Python runtime environment when the program is published. There are many programs that can help us do this, such as Py2exe,pyinstaller,cxfreeze.
Only Cxfreeze supports 3.x versions, and Cxfreeze does not support the packaging of all files to an EXE. 3.x versions of Python are larger than 2.x, so developers are advised to use 2.X versions.
Py2exe can be packaged in a Python program's runtime and dependent libraries into an EXE file. This can solve most people's problems. But if you use the cTYPES to call the DLL, how do you get the DLL file in? One way to do this is to use the self-extracting method to compress all files with RAR, and to configure self extracting. But there is a flaw in this, that is, will create two processes, one is the decompression program, the second is their own program. The author tried a lot of ways not to do only one process and the DLL file into the package.
The method of calling DLLs in Python and merging DLLs and Python into one EXE file