PyInstaller 2.0官網位址http://www.pyinstaller.org/
2.0版本是最新版本,轉化操作十分簡單:
首先使用PyInstaller需要安裝PyWin32,下載下傳位址:http://sourceforge.net/projects/pywin32/files/pywin32/Build%20217/
選擇合适的python版本。
1. PyInstaller 下載下傳完成解壓即可;
2.通過CMD進入指令行模式,并進入PyInstaller 2.0的目錄下
指令示例:E:\py\pyinstaller-2.0>python pyinstaller.py --onefile main.py
解壓的目錄位址 E:\py\pyinstaller-2.0>
執行的指令:python pyinstaller.py
相關選項: --onefile
要轉換的python腳本: main.py
運作完成,在目前目錄會生成一個名字為main的檔案夾,在下一級檔案夾dist中有生成的main.exe檔案。