This question already has answers here:
Is it possible to decompile a compiled .pyc file into a .py file?
(9 answers)
Closed 9 years ago.
I'm a newcomer to programming, and currently taking a course on MIT OCW, using Python 2.6.
The site provides me with a .pyc file, and I wonder if it can be decompiled back to a .py file.
I have researched some ways on the Internet, such as this: Is it possible to decompile a compiled .pyc file into a .py file?
But I just can't understand what they're saying (newcomer).
It would be a great help for newcomers like me if there is a detailed guide on how-to-do this.
Thank you, and sorry for my bad English.
You may check this tools might help you.
http://sourceforge.net/projects/unpyc/
Related
This question already has answers here:
Is it possible to decompile a .dll/.pyd file to extract Python Source Code?
(2 answers)
Closed 4 years ago.
I have a script and i think its compiled with something like Cpython.
I can run this script, but i want to access to source code.
Is there any way to do this?
Thanks
I think uncompyle6 will work for you.
In my win7 cmd This works.
pip install uncompyle6
uncompyle6 compiled.pyc > uncompiled.py
This question already has answers here:
Is it possible to decompile a compiled .pyc file into a .py file?
(9 answers)
Closed 5 years ago.
I made a huge mistake and included a python file in a large group of files that I removed with -rm. However, I still have the .pyc file stored in __pycache__.
Is there any way to restore a python file from it's cache?
Sorry to hear, try your luck with these Python byte-code de-compilers:
https://github.com/wibiti/uncompyle2
https://pypi.python.org/pypi/uncompyle6
https://sourceforge.net/projects/easypythondecompiler/files/
https://github.com/zrax/pycdc
This question already has answers here:
Process to convert simple Python script into Windows executable [duplicate]
(8 answers)
Closed 9 years ago.
I have been working a lot on python recently, mostly using IDE. Now I have a need to make a .exe program out of my code. Have tried cx_freeze but i couldn't understand what to do. So, if anyone could either give me a link to a good guide for begginers, or another easier .py to .exe program, I would be grateful.
PS
I am using Python 3.3.
Try py2exe..
Install py2exe in your system, then generate a setup file as shown here
Thats it. Your .exe file will be created.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I make an EXE file from a Python program?
I have found several links talking about what to do, but I am unsure of how to use them. They often say to just use the code, but they don't say if I should put it in the terminal or use it to make a program to run. Many recommend the use of py2exe but when I try to use it it will not run because it says I do not have python 2.6 in my registery. I am rather new to the more complicated side of programming and any help would be appreciated. I am running windows vista.
This is certainly a duplicate question, but I'd recommend using py2exe. We probably need more information on how or why you are failing.
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Can EXE generated by cx_freeze be completely decompiled back to readable Python code?
I've used cx-freeze to convert a python script to an executable. Is it possible to reverse that? Can I get my python script from the binary cx-freeze has generated?
EDIT. This is a practical question. I really need to recover one cx-freezed executable to a more-less readable form. Does anyone have a recipie of doing it?
Any 'frozen' PY application can be disassembled but not really decompiled. With enough time and patience someone would be able to reverse-engineer nearly any program (including yours).
Edit
Correction as per comments below.