Search code examples
python-3.xexecutablepyinstaller

Exe to python with pyinstaller?


So I made a huge mistake and deleted my code file (python). The only thing I have is my python file as .exe that I created with pyinstaller. Is there a way to reverse this and to extract my code file from .exe?


Solution

  • You can extract the contents of the .exe file using PyInstaller Extractor. Run it like this:

    python pyinstxtractor.py executable.exe
    

    You will then get a bunch of files, including your original python file.