1.安裝 pip install pyinstaller
參數
pyinstaller -h #help
-F #打包成EXE
-icon #圖標
-w #視窗化
-c #console
-D #創建目錄 ,含EXE 及依賴性文件
python -b test.py 可以使__pycache__ 資料夾不出現
# win10 64bit 下編譯無法在 win764bit 上使用,要64 +32 bit 可用需在 python32 下使用
https://medium.com/pyladies-taiwan/python-%E5%B0%87python%E6%89%93%E5%8C%85%E6%88%90exe%E6%AA%94-32a4bacbe351