How can I decompile .pyc files from Python 3.10?

35.9k Views Asked by At

I did try uncompyle6, decompyl3, and others, but none of them worked with 3.10. Is it even possible to do this right now?

2

There are 2 best solutions below

5
MD Kawsar On BEST ANSWER

Use pycdc. Github: https://github.com/zrax/pycdc

git clone https://github.com/zrax/pycdc
cd pycdc
cmake .
make
make check
pycdc C:\Users\Bobby\example.pyc
0
Zbooby On

on Windows (presume you have both Cmake and MSBuild.exe)

git clone https://github.com/zrax/pycdc
cd pycdc
cmake .
MSBuild.exe pycdc.vcxproj
cd pycdc/Debug
pycdc.exe yourfile.pyc