// 1.安裝python3
apt install python3
// 2.安裝pip3
apt install python3-pip
// 3.安裝pyinstaller
pip3 install pyinstaller
// 4.打包 (單個文件)
pyinstaller -F test.py
//dist文件下的test,即為生成的文件
pyinstaller時如果出現(xiàn)以下錯誤
// err:On Linux, objdump is required. It is typically provided by the 'binutils' package installable via your Linux distribution's package manager.
apt install binutils