別再問我怎麼Python打包成exe了!
別再問我怎麼Python打包成exe了!
資料來源: https://mp.weixin.qq.com/s?__biz=MzA5MTkxNTMzNg==&mid=2650270551&idx=3&sn=b2611aa4cce768ee5d897c611042011c&chksm=88765e70bf01d766280cbd1d5a18e186bc138e4f96f984c12732bbaacb0473a70ab13cbf4449&scene=126&sessionid=1597040016&key=7674ee21d747fecf8c5c3ae4d379befbec4218b7b42dcdb573f4b77ed2277d349c39c03ab2bf625518c1bd0f27e2946b2a8b2fb46f85004b45e1ac5b94f3176db22afa0f728b16c87ad79633a1b82657&ascene=1&uin=MjIwODk2NDgxNw%3D%3D&devicetype=Windows+10+x64&version=62090529&lang=zh_TW&exportkey=AnE1p7k3iiOZBSdWXUe41KQ%3D&pass_ticket=bcptEc43IhovbbdHgESZRUlBrmUNtXyGgbYx0VRjLzYvuTK2SF0pbyLwFb%2BjVrxY
01.安裝pyinstaller,使用安裝命令:
pip3 install pyinstaller
02.Pyinstaller打包exe
Pyinstaller -F setup.py #打包exe
Pyinstaller -F -w setup.py #不帶控制台的打包
Pyinstaller -F -i xx.ico setup.py #打包指定exe圖標打包
PS. -F一律覆蓋檔案
One thought on “別再問我怎麼Python打包成exe了!”
pyinstaller和Nuitka使用感受
https://mp.weixin.qq.com/s/sNaC1bHPYXkS5hIdbvTeCQ