Is it possible to compile Python natively (beyond pyc byte code)?

后端 未结 4 1742
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 16:39

I wonder if it is possible to create an executable module from a Python script. I need to have the most performance and the flexibility of Python script, without needing to run

4条回答
  •  自闭症患者
    2021-02-02 17:11

    You can use something like py2exe to compile your python script into an exe, or Freeze for a linux binary.

    see: How can I create a directly-executable cross-platform GUI app using Python?

提交回复
热议问题