python打包成exe可执行文件(pyinstaller) 1、先安装pyinstaller pip install pyinstaller 2、切换到文件目录 cd mypath 3、使用以下命令 pyinstaller -F ***.py