安装

pip install pyinstaller

使用

打包成一个可执行的文件

pyinstaller -F mycript.py