一、安装pyinstaller

使用pip install pyinstaller

二、执行命令

pyinstaller -F  “文件的绝对路径”

Python文件如何打包

生成成路劲会在下方告诉你

pyinstaller 参数

Python文件如何打包

相关文章: