« pip install version指定 | メイン | tensorflow2でかすぎ »

2022年08月09日

nuitka あれこれ

opencvをimportしてる場合はnumpyを含める
python -m nuitka test.py --plugin-enable=numpy --onefile --include-data-file="maru.png=./"


■含められるプラグインのリストは以下で表示
python -m nuitka --plugin-list

■includeするファイルが複数ある場合は
--include-data-file="maru.png=./" を複数書く

■`--standalone` や ` --onefile` の場合はpythonインストールしていない人でも使えるものができる
  onefileの場合はさらに一つのファイルにする
  テストの時は--standaloneで

投稿者 muuming : 2022年08月09日 19:27