1
1

python exe化

Posted at

pythonプログラムをexe化する

exe化ツールはいくつかあるが、pyinstallerを利用
Nuitkaはexeファイルが大きくなる傾向

  • pyinstaller
  • Nuitka

pyinstaller --clean --onefile --noconsole

使ってみたけど --noconsole だとexeが落ちた時に気付けないので、最近は--noconsoleは外して実行
pyinstallerもexeファイルはでかい。。。

Edgedriverexeを取り込みたい
--binary "edge.exe;edge.exe"
でうまくいかない

アイコンのオプションもあったな。
--icon=test.ico

アイコンファイルの作り方
https://service.tree-web.net/icon_converter/

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1