Question: pyinstaller how does it work?
Answer: PyInstaller reads a Python script written by you. It analyzes your code to discover every other module and library your script needs in order to execute. Then it collects copies of all those files – including the active Python interpreter! ... They do not need to install any particular version of Python or any modules.