This article only applies to Windows systems, LINUX,MAC or other systems can write their own script to install it, and even most of the system comes with it.
Believe that some people have written the results of the Python program to a friend run and have to install a Python environment, inevitably lose the simplicity of it?
For those who do not know the technology, it may be that he might be asked to install the Python environment without knowing what to do.
Then some people find that Python is installed and copying Python files directly is certainly not possible.
Some specific DLLs are missing ...
so the solution is as follows:
When you install the Python version of Windows, select Install only to individual users and select D or other non-system disks.
In this case, the installer will install all the required DLLs into the directory of your choice.
Finally, you can copy all the files in the installation directory directly, then put them together with your Python program and then write your own bat to run.
If you reject too many files, I recommend that you use other compiled language, write a small program, the file embedded inside the program, run the direct output.
or write a setup program.
At least that's what I did.
I have written a C language program that executes the "Lib_python/_python.exe mcserverw.py" command.
and a bat. BAT program content.
Thanks for the patience to read.
Build your own mobile green version of the Python environment