Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 928
Mantas Kandratavičius Avatar asked Apr 12 '16 18:04

Mantas Kandratavičius


People also ask

Does PyInstaller exe require Python?

To your users, the app is self-contained. They do not need to install any particular version of Python or any modules. They do not need to have Python installed at all. The output of PyInstaller is specific to the active operating system and the active version of Python.

Does PyInstaller package Python?

PyInstaller bundles a Python application and all its dependencies into a single package. The user can run the packaged app without installing a Python interpreter or any modules.

Can I make executable file in Python?

Underneath the GUI is PyInstaller, a terminal based application to create Python executables for Windows, Mac and Linux. Veteran Pythonistas will be familiar with how PyInstaller works, but with auto-py-to-exe any user can easily create a single Python executable for their system.


1 Answers

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.

like image 76
Zenadix Avatar answered Sep 19 '22 15:09

Zenadix