I'm looking for a compiler to compile '.py' file to a single '.exe' file.
I've try already auto-py-to-exe but I'm not happy with it.
I've tried PyInstaller, but one of its dependencies (PyCrypto, which I need) is not working/ maintained anymore and fails to install. https://pyinstaller.readthedocs.io/en/stable/usage.html#encrypting-python-bytecode
I've look also nuitka but it doesn't seem possible to set an icon for the exe.
Do you have any compiler recommendations that can obfuscate / encrypt the code to limit the reverse engineering?
I had a similar issue to this, needing to run Python code on machines where Python could not be downloaded.
I used py2exe, and it worked quite well. (https://www.py2exe.org/)
You could try these steps to convert .py to .exe in Python 3.8
pip install cx_Freeze
.pip install idna
..py
a program named myfirstprog.py
.setup.py
on the current directory of your script.setup.py
file, copy the code below and save it.python setup.py build
build
. It has another folder in it. Within that folder, you can find your application. Run it. Make yourself happy.See the original answer here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With