Compiling Python

前端 未结 8 833
故里飘歌
故里飘歌 2020-12-29 17:59

How can I compile and run a python file (*.py extension)?

8条回答
  •  清歌不尽
    2020-12-29 18:48

    Python compiles its files to bytecode before executing them. That means you have to have a Python interpreter installed on the target machine.

    If you don't want to install Python on the target machine use py2exe, py2app or something similar.

提交回复
热议问题