1、下载PyInstaller 2、运行一下命令 python pyinstaller.py –onefile –icon=app.ico “app.py” –onefile:建立一个单独的可执行文件。 –icon:为.exe文件添加一个图标文件。 参考: —http://pythonhosted.org/PyInstaller/
1、下载PyInstaller 2、运行一下命令 python pyinstaller.py –onefile –icon=app.ico “app.py” –onefile:建立一个单独的可执行文件。 –icon:为.exe文件添加一个图标文件。 参考: —http://pythonhosted.org/PyInstaller/