python exe

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

本篇發表於 python。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>