How do I deploy a Python desktop application?

前端 未结 5 1594
粉色の甜心
粉色の甜心 2021-01-30 03:40

I have started on a personal python application that runs on the desktop. I am using wxPython as a GUI toolkit. Should there be a demand for this type of application, I would po

5条回答
  •  旧时难觅i
    2021-01-30 04:10

    You can distribute the compiled Python bytecode (.pyc files) instead of the source. You can't prevent decompilation in Python (or any other language, really). You could use an obfuscator like pyobfuscate to make it more annoying for competitors to decipher your decompiled source.

    As Alex Martelli says in this thread, if you want to keep your code a secret, you shouldn't run it on other people's machines.

    IIRC, the last time I used cx_Freeze it created a DLL for Windows that removed the necessity for a native Python installation. This is at least worth checking out.

提交回复
热议问题