両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン |
python [2019/08/18 07:11] – [環境構築] ともやん | python [2020/01/29 06:59] – [パッケージ] ともやん |
---|
<ifauth !@loggedinusers><html> | |
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | |
<script> | |
(adsbygoogle = window.adsbygoogle || []).push({ | |
google_ad_client: "ca-pub-0791334967460971", | |
enable_page_level_ads: true | |
}); | |
</script></html></ifauth> | |
====== Python 関連 ====== | ====== Python 関連 ====== |
{{:python:python_logo.svg?200|Python Logo}}\\ | {{:python:python_logo.svg?200|Python Logo}}\\ |
\\ | \\ |
[[python:venv|Python venv 仮想環境]]\\ | [[python:venv|Python venv 仮想環境]]\\ |
| [[python:virtualenvwrapper|VirtualEnv & VirtualEnvWrapper で作る Python 2.7 仮想環境]](古い資料です)\\ |
[[python:pythonbrew|pythonbrew の使い方]]\\ | [[python:pythonbrew|pythonbrew の使い方]]\\ |
[[python:easy_install|easy_install、setuptools、pip - パッケージ管理]]\\ | [[python:easy_install|easy_install、setuptools、pip - パッケージ管理]]\\ |
[[windows:mercurial|TortoiseHg - Mercurial 分散型バージョン管理システム用ツール]](Windows)\\ | [[windows:mercurial|TortoiseHg - Mercurial 分散型バージョン管理システム用ツール]](Windows)\\ |
[[mac:tortoisehg|TortoiseHg - Mercurial 分散型バージョン管理システム用ツール]](Mac)\\ | [[mac:tortoisehg|TortoiseHg - Mercurial 分散型バージョン管理システム用ツール]](Mac)\\ |
[[python:virtualenvwrapper|VirtualEnv & VirtualEnvWrapper で作る Python 仮想環境]](古い資料です)\\ | |
| |
===== パッケージ ===== | ===== パッケージ ===== |
[[python:fabric|Fabric]]\\ | [[python:fabric|Fabric]]\\ |
[[python:moinmoin|MoinMoin]]\\ | [[python:moinmoin|MoinMoin]]\\ |
| [[python:pythonnet|Python for .NET (pythonnet)]] (Python .NET 連携)\\ |
[[python:uwsgi|uWSGI - WSGI アプリケーションコンテナ]]\\ | [[python:uwsgi|uWSGI - WSGI アプリケーションコンテナ]]\\ |
[[python:cefpython|CEFPython]]\\ | [[python:cefpython|CEFPython]]\\ |
\\ | \\ |
[[python:python-hwinfo|python-hwinfo]]\\ | [[python:python-hwinfo|python-hwinfo]]\\ |
| \\ |
| [[python:mutagen|Mutagen]]\\ |
| |
| ===== アプリ ===== |
| [[python:youtube-dl|youtube-dl - YouTube や他の動画サイトから動画をダウンロード]]\\ |
| |
===== 言語構文 ===== | ===== 言語構文 ===== |
[[python:wxpython|wxPython - クロス プラットフォーム GUIライブラリ]]\\ | [[python:wxpython|wxPython - クロス プラットフォーム GUIライブラリ]]\\ |
[[javascript:mochikit|MochiKit - A lightweight Javascript library]]\\ | [[javascript:mochikit|MochiKit - A lightweight Javascript library]]\\ |
| |
| ===== JIT コンパイラ ===== |
| [[http://numba.pydata.org/|Numba: A High Performance Python Compiler]]\\ |
| * Anaconda, Inc. が開発する Python コードの JIT コンパイラ\\ |
| * 使い方は関数に @njit = @jit(nopython=True) デコレータを指定する\\ |
| * @jit(int32(int32, int32)) のような型指定で更に高速化される\\ |
| * @jit(nogil=True) によりマルチコアシステムを活用できる\\ |
| * @jit(cache=True) によりプログラムを呼び出すたびに掛かるコンパイル時間を回避できる\\ |
| * @jit(nopython=True, parallel=True) = @njit(parallel=True) により自動並列化による最適化を実行できる\\ |
| * Numpy などは高速化できるが Pandas は Numba によって理解されないため高速化されない\\ |
| * Numba は関数の Python バイトコードを LLVM を使用して CPU に合わせた関数のマシンコードバージョンを生成する\\ |
| * [[https://developer.nvidia.com/cuda-zone|Nvidia CUDA]] および [[https://rocm.github.io/|AMD ROC]] GPU をターゲットにできる\\ |
| |
| Pandas がボトルネックになってもカーネル関数に分離すれば Numba で最適化出来る。\\ |
| [[https://medium.com/bcggamma/bring-your-python-code-up-to-speed-with-numba-1aa1c0e52885|Bring Your Python Code Up to Speed with Numba - BCG GAMMA - Medium]]\\ |
| |
===== 開発環境 ===== | ===== 開発環境 ===== |