// 1.安装python3
apt install python3
// 2.安装pip3
apt install python3-pip
// 3.安装pyinstaller
pip3 install pyinstaller
// 4.打包 (单个文件)
pyinstaller -F test.py
//dist文件下的test,即为生成的文件
pyinstaller时如果出现以下错误
// 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
网友评论