1、先安装pyinstaller
pip install pyinstaller

2、切换到文件目录
cd mypath

3、使用以下命令
pyinstaller -F ***.py

相关文章: