creating stand-alone executable for windows from python code

后端 未结 2 2025
悲哀的现实
悲哀的现实 2021-01-01 06:14

I have a python code which uses the pygkt, gtk, ctypes, os and some other modules. I used pyinstaller to create a stand-alone executive of the code. It worked fine on ubuntu

2条回答
  •  梦毁少年i
    2021-01-01 06:49

    I'd recommend using pyinstaller

    Example:

    $ pip install pyinstaller
    $ pyinstaller -F myscript.py
    

    You should now have a build/myscript/myscript.exe executable.

提交回复
热议问题