Can EXE Generated By Cx_freeze Be Completely Decompiled Back To Readable Python Code?
Answer : In general - no. CX Freeze and py2exe store the PYC version of your code, the bytecode compiled from the PY files. Currently, if I am not mistaken, there are no working viable PYC decompilers. Some give you a more-or-less readable byte code with annotations, but none will give you the actual Python source code. So in that regard - no, it cannot be decompiled. You can also consider going the full native way and use Shed Skin It seems that the current accepted answer is no longer true. Here is how to recover the original source code from a project frozen with cx_freeze . Note: it is done here on a "Hello world" project, but, using the same method, I've been able to decompile a 1000+ lines-of-code source code from a project of mine frozen with cx_freeze , and recover nearly the original source code! 1) Use cx_freeze Create a test.py file containing import time print('hello') time.sleep(2) print('world') Then create the executable with cxf...