概述:是第三方庫,將py源碼轉換成無需源碼的可執行文件 .py pyinstaller --> .exe
官網:https://pyinstaller.readthedocs.io/en/stable/usage.html
安裝:(cmd命令行下)pip install pyinstaller
升級:(cmd命令行下)pip install --upgrade pyinstaller
使用:
(cmd命令行下)pyinstaller -F 文件名.py -F :在dist文件夾中只生成獨立的打包文件
(cmd命令行下)pyinstaller -F 文件名.py -i 圖標文件名.ico -F :在dist文件夾中只生成獨立的打包文件 -i 指定打包程序使用的圖標(icon)文件