Search code examples
pythonexecexecutablecx-freezegenerate

Generate an executable from python project


I need to generate an executable from a python project containing multiple folders and files. I tried to work with library cx_Freeze, but only worked for a single file project.

Can you tell me how to do please?


Solution

  • use pyinstaller. just run pip install pyinstaller and then open the folder the file is located in with shell and run pyinstaller --onefile FILE.py where file is the name of the python file that should be run when the exe is run