両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン |
python:pipx [2024/03/09 08:09] – [jupyterlab-lsp] ともやん | python:pipx [2024/03/27 09:14] – [PATH 環境変数の設定] ともやん |
---|
| |
===== インストール ===== | ===== インストール ===== |
公式: [[https://pypa.github.io/pipx/installation/#install-pipx|Install pipx - Installation - pipx]] [[gtr>https://pypa.github.io/pipx/installation/#install-pipx|翻訳]]\\ | 公式: [[https://pipx.pypa.io/stable/#install-pipx|Install pipx - Installation - pipx]] [[gtr>https://pipx.pypa.io/stable/#install-pipx|翻訳]]\\ |
| |
Fedora\\ | Fedora\\ |
<WRAP color_term> | <WRAP color_term> |
<WRAP color_command><html><pre> | <WRAP color_command><html><pre> |
<b class=GRN>$</b> <b class=HIY>python3</b> <b class=HIK>-m</b> pip install <b class=HIK>--user</b> pipx | <font color="#FF8700"><b>$</b></font> <font color="#26A269">python3</font> <font color="#A347BA">-m</font> pip install <font color="#A347BA">--user</font> pipx |
</pre></html></WRAP> | </pre></html></WRAP> |
<WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
| |
==== PATH 環境変数の設定 ==== | ==== PATH 環境変数の設定 ==== |
| <WRAP round important 90% minfont_12> |
| <html><code>pipx ensurepath</code></html> を実行すると <html><code>$PATH:~/.local/bin</code></html> が設定されて <html><code>/usr/bin</code></html> が優先になるので注意が必要である🤔\\ |
| <WRAP color_term> |
| <WRAP color_command><html><pre> |
| <font color="#FF8700"><b>$</b></font> <font color="#26A269">grep</font> <font color="#A347BA">-d</font> skip <font color="#A347BA">-A</font> 1 <font color="#A2734C">"Created by"</font> ~/.<font color="#12488B"><b>*</b></font> <font color="#A347BA">--exclude=</font><font color="#A2734C">'*history'</font> |
| </pre></html></WRAP> |
| <WRAP color_result><html><pre> |
| <font color="#A347BA">/home/tomoyan/.commonshrc</font><font color="#2AA1B3">:</font># <font color="#C01C28"><b>Created by</b></font> `pipx` on 2024-02-02 08:14:31 |
| <font color="#A347BA">/home/tomoyan/.commonshrc</font><font color="#2AA1B3">-</font>export PATH="$PATH:/home/tomoyan/.local/bin" |
| <font color="#2AA1B3">--</font> |
| <font color="#A347BA">/home/tomoyan/.zprofile</font><font color="#2AA1B3">:</font># <font color="#C01C28"><b>Created by</b></font> `pipx` on 2024-02-02 08:14:31 |
| <font color="#A347BA">/home/tomoyan/.zprofile</font><font color="#2AA1B3">-</font>export PATH="$PATH:/home/tomoyan/.local/bin" |
| </pre></html></WRAP> |
| </WRAP> |
| |
| </WRAP> |
| |
<WRAP color_term> | <WRAP color_term> |
<WRAP color_command><html><pre> | <WRAP color_command><html><pre> |
| |
<WRAP column 100%> | <WRAP column 100%> |
<WRAP left round tip 80%> | <WRAP left round tip 80% minfont_12> |
| |
zsh の場合は <html><code>~/.zprofile</code></html> に <html><code>PATH</code></html> の設定が追加されます。\\ | zsh の場合は <html><code>~/.zprofile</code></html> に <html><code>PATH</code></html> の設定が追加されます。\\ |
| |
<WRAP column 100%> | <WRAP column 100%> |
<WRAP left round tip 80%> | <WRAP left round tip 80% minfont_12> |
| |
<WRAP color_term> | <WRAP color_term> |
| |
==== 複数バージョンの混在 [--suffix] ==== | ==== 複数バージョンの混在 [--suffix] ==== |
| |
| === JupyterLab === |
| [[python:jupyterlab#python_環境を_pipx_で構築|Python 環境を pipx で構築 - JupyterLab - Project Jupyter の次世代ユーザーインターフェース]] も参照🤔\\ |
| |
=== JupyterLab3 基本セット === | === JupyterLab3 基本セット === |
</WRAP> | </WRAP> |
| |
=== jupyterlab-drawio === | |
[[https://www.drawio.com|]]\\ | |
<WRAP color_term> | |
<WRAP color_command><html><pre> | |
<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">pipx</font> inject jupyterlab4 jupyterlab-drawio | |
</pre></html></WRAP> | |
<WRAP color_result><html><pre> | |
injected package <b>jupyterlab-drawio</b> into venv <b>jupyterlab4</b> | |
done! ✨ 🌟 ✨ | |
</pre></html></WRAP> | |
</WRAP> | |
| |
| |
=== Jupyter AI === | |
<WRAP color_term> | |
<WRAP color_command><html><pre> | |
<font color="#FF8700"><b>$</b></font> <font color="#26A269">pipx</font> inject jupyterlab4 jupyter-ai jupyter-ai-magics <font color="#A347BA">--pip-args=</font><font color="#A2734C">'--only-binary=:all:'</font> | |
</pre></html></WRAP> | |
<WRAP color_result><html><pre> | |
injected package <b>jupyter-ai</b> into venv <b>jupyterlab4</b> | |
done! ✨ 🌟 ✨ | |
injected package <b>jupyter-ai-magics</b> into venv <b>jupyterlab4</b> | |
done! ✨ 🌟 ✨ | |
</pre></html></WRAP> | |
</WRAP> | |
| |
=== 仮想環境一覧 === | === 仮想環境一覧 === |