为了给别人使用将 .py 文件打包成 .exe 文件
安装 PyInstaller ,完成
打开 Cmd 调用
path:pyinstaller.exe -F path: ame.py
发布文件的路径为当前控制台窗口路径
当执行命令路径有空格时 用 “”
“C:Program Files (x86)Microsoft Visual StudioSharedPython36_64Scripts”
参数(区别大小写)
-F 生成单个可执行文件
-w 去掉名控制台窗口
-p 自定义加载类路径
-i 自定义图标
path:pyinstaller.exe -F path: ame.ico path: ame.py