I am referring to this stackoverflow answer
How to obfuscate Python code effectively?
python -OO -m py_compile <your program.py>
It said a .pyo new file should be produced but I am not getting any new file or any errors..
what is wrong?
I am referring to this stackoverflow answer
How to obfuscate Python code effectively?
python -OO -m py_compile <your program.py>
It said a .pyo new file should be produced but I am not getting any new file or any errors..
what is wrong?
It's hard to tell exactly the root cause of this error. I have just run a test in a similar environment to yours and it works perfectly fine.
It, however, does not output a file of type .pyc instead, it outputs a folder named __pycache__ in which it contains the compiled python file. Check if this folder is created in your directory; it is most likely that it will.
Side note: As someone mentioned in the comments, consider using this instead as it is able to recover full source code