安装pyinstaller包
pip3 install pyinstaller
打包命令:
pyinstaller --onefile --noconsole demo.py # 将demo.py文件打包为exe安装包,且执行时没有窗口出现