PythonのExe化
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
] [
Twitter
]
開始行:
→Python関連Tips
#contents
----
-exe化することでプログラムの速度が遅くなる可能性がありま...
-また、exe化されたプログラムは、外部ライブラリやモジュー...
-スピードを上げるには以下の方法が考えられます。
--不要なモジュールやライブラリを削除する
--アプリケーションの起動時間を短縮するために、py2exeのオ...
--CythonなどでPythonコードをコンパイルし、exe化する
* 一般 [#leeb00c3]
-[[mypyc/mypyc: Compile type annotated Python to fast C e...
--Mypyc compiles Python modules to C extensions.
--It uses standard Python type hints to generate fast cod...
--Mypyc uses mypy to perform type checking and type infer...
-[[1. C や C++ による Python の拡張 — Python 3.11.4...
-[[The structure of .pyc files | Ned Batchelder>https://n...
-[[エクセルをPythonで操作したい!〜xlwings×Pyinstal...
--Python環境が無い⼈にまるっとPython+ライブラリ+実&...
--2つを連携させることでPython×エクセルアプリが誰にでも配...
*py2exe [#uaf3be70]
-fletなどで作ったプログラムをコンソールを出さないexeにす...
freeze(
# console=["flet_main.py"],
windows=["flet_main.py"],
options={
"packages": ["common"],
"includes": [],
"excludes": [],
},
)
--このとき、ログがstdoutへ出力されると終了時に「Errors in...
#こういうことをしていると必ずダイアログが出てしまう。roo...
root: Logger = getLogger()
root.setLevel(DEBUG)
--面倒ならメインモジュールで以下のような呪文を入れると良...
sys.stderr = sys.stdout = os.devnull
--参考:[[python - Py2Exe generate log file - Stack Overf...
-[[Selenium用WebDriverManagerを使うとpy2exeでexe化したと...
-[[DeprecationWarning: the `setup.py py2exe` command line...
--[[py2exe/migration.md at master · py2exe/py2exe &#...
--[[py2exe/py2exe.freeze.md at master · py2exe/py2ex...
-[[py2exe公式>http://www.py2exe.org/index.cgi/FrontPage]]
-[[python - Multiple top-level packages discovered in a f...
--下記のようなエラーが出る場合、setup() の引数に py_modul...
error: Multiple top-level packages discovered in a flat-...
To avoid accidental inclusion of unwanted files or direc...
setuptools will not proceed with this build.
If you are trying to create a single distribution with m...
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `inclu...
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list...
To find more information, look for "package discovery" o...
-[[python - py2exe - generate single executable file - St...
-[[python py2exeでexe化した後、pyside周りとかでエラーがで...
-[[pyhon.py→exe化→軽量化→高速化 忘備録(pyinstaller py2ex...
*PyInstaller [#c0d83c45]
-PyInstallerは作成したexeの起動が遅いという難点が指摘され...
-[[PyInstallerによるPythonスクリプトのexe化とエラー対処方...
-[[PyInstallerのImportErrorとModuleNotFoundErrorで躓いた...
-[[Pythonファイルを超簡単にexeファイル化するGUIソフト - Q...
-[[Pythonスクリプトのexe化>https://qiita.com/ybsh2891/ite...
*Codon [#b43a50fd]
-[[Codonを使いPythonで作成したプログラムをC/C++で活用する...
-[[Pythonを高速化する「Codon」コンパイラを使ってみた | De...
-[[あなたのPythonを100倍高速にする技術 / Codon入門>https:...
--[[GitHub - exaloop/codon: A high-performance, zero-over...
*Nukita [#d03ac545]
-[[NuitkaでPythonプログラムを配布してみよう | インフォメ...
-[[PyInstaller より圧倒的に優れている Nuitka の使い方とハ...
*モジュール化 [#l5b281a0]
-[[Pythonで自分だけのクソライブラリを作る方法>https://zen...
-[[[Python] 最小限setup.pyでのビルドを通じてsetuptoolsの...
-[[setuptools でサクッと自作モジュールを作る(python) - ...
終了行:
→Python関連Tips
#contents
----
-exe化することでプログラムの速度が遅くなる可能性がありま...
-また、exe化されたプログラムは、外部ライブラリやモジュー...
-スピードを上げるには以下の方法が考えられます。
--不要なモジュールやライブラリを削除する
--アプリケーションの起動時間を短縮するために、py2exeのオ...
--CythonなどでPythonコードをコンパイルし、exe化する
* 一般 [#leeb00c3]
-[[mypyc/mypyc: Compile type annotated Python to fast C e...
--Mypyc compiles Python modules to C extensions.
--It uses standard Python type hints to generate fast cod...
--Mypyc uses mypy to perform type checking and type infer...
-[[1. C や C++ による Python の拡張 — Python 3.11.4...
-[[The structure of .pyc files | Ned Batchelder>https://n...
-[[エクセルをPythonで操作したい!〜xlwings×Pyinstal...
--Python環境が無い⼈にまるっとPython+ライブラリ+実&...
--2つを連携させることでPython×エクセルアプリが誰にでも配...
*py2exe [#uaf3be70]
-fletなどで作ったプログラムをコンソールを出さないexeにす...
freeze(
# console=["flet_main.py"],
windows=["flet_main.py"],
options={
"packages": ["common"],
"includes": [],
"excludes": [],
},
)
--このとき、ログがstdoutへ出力されると終了時に「Errors in...
#こういうことをしていると必ずダイアログが出てしまう。roo...
root: Logger = getLogger()
root.setLevel(DEBUG)
--面倒ならメインモジュールで以下のような呪文を入れると良...
sys.stderr = sys.stdout = os.devnull
--参考:[[python - Py2Exe generate log file - Stack Overf...
-[[Selenium用WebDriverManagerを使うとpy2exeでexe化したと...
-[[DeprecationWarning: the `setup.py py2exe` command line...
--[[py2exe/migration.md at master · py2exe/py2exe &#...
--[[py2exe/py2exe.freeze.md at master · py2exe/py2ex...
-[[py2exe公式>http://www.py2exe.org/index.cgi/FrontPage]]
-[[python - Multiple top-level packages discovered in a f...
--下記のようなエラーが出る場合、setup() の引数に py_modul...
error: Multiple top-level packages discovered in a flat-...
To avoid accidental inclusion of unwanted files or direc...
setuptools will not proceed with this build.
If you are trying to create a single distribution with m...
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:
1. set up custom discovery (`find` directive with `inclu...
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list...
To find more information, look for "package discovery" o...
-[[python - py2exe - generate single executable file - St...
-[[python py2exeでexe化した後、pyside周りとかでエラーがで...
-[[pyhon.py→exe化→軽量化→高速化 忘備録(pyinstaller py2ex...
*PyInstaller [#c0d83c45]
-PyInstallerは作成したexeの起動が遅いという難点が指摘され...
-[[PyInstallerによるPythonスクリプトのexe化とエラー対処方...
-[[PyInstallerのImportErrorとModuleNotFoundErrorで躓いた...
-[[Pythonファイルを超簡単にexeファイル化するGUIソフト - Q...
-[[Pythonスクリプトのexe化>https://qiita.com/ybsh2891/ite...
*Codon [#b43a50fd]
-[[Codonを使いPythonで作成したプログラムをC/C++で活用する...
-[[Pythonを高速化する「Codon」コンパイラを使ってみた | De...
-[[あなたのPythonを100倍高速にする技術 / Codon入門>https:...
--[[GitHub - exaloop/codon: A high-performance, zero-over...
*Nukita [#d03ac545]
-[[NuitkaでPythonプログラムを配布してみよう | インフォメ...
-[[PyInstaller より圧倒的に優れている Nuitka の使い方とハ...
*モジュール化 [#l5b281a0]
-[[Pythonで自分だけのクソライブラリを作る方法>https://zen...
-[[[Python] 最小限setup.pyでのビルドを通じてsetuptoolsの...
-[[setuptools でサクッと自作モジュールを作る(python) - ...
ページ名: