1. 程式人生 > >Ubuntu使用pyinstaller打包python

Ubuntu使用pyinstaller打包python

使用環境: ubuntu 10.04

2.安裝python-dev

    sudo apt-get  install python-dev

3.執行以下命令:

   python pyinstaller.py   --onefile  youscript.py

注意:python 編譯的位元組碼只能在相同版本的直譯器中執行