python:pipx

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
最新のリビジョン両方とも次のリビジョン
python:pipx [2024/03/09 08:09] – [jupyterlab-lsp] ともやんpython:pipx [2024/03/27 09:14] – [PATH 環境変数の設定] ともやん
行 10: 行 10:
  
 ===== インストール ===== ===== インストール =====
-公式: [[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>
行 69: 行 69:
  
 ==== 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">&quot;Created by&quot;</font> ~/.<font color="#12488B"><b>*</b></font> <font color="#A347BA">--exclude=</font><font color="#A2734C">&apos;*history&apos;</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=&quot;$PATH:/home/tomoyan/.local/bin&quot;
 +<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=&quot;$PATH:/home/tomoyan/.local/bin&quot;
 +</pre></html></WRAP>
 +</WRAP>
 +
 +</WRAP>
 +
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
行 97: 行 114:
  
 <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> の設定が追加されます。\\
行 142: 行 159:
  
 <WRAP column 100%> <WRAP column 100%>
-<WRAP left round tip 80%>+<WRAP left round tip 80% minfont_12>
  
 <WRAP color_term> <WRAP color_term>
行 497: 行 514:
  
 ==== 複数バージョンの混在 [--suffix] ==== ==== 複数バージョンの混在 [--suffix] ====
 +
 +=== JupyterLab ===
 +[[python:jupyterlab#python_環境を_pipx_で構築|Python 環境を pipx で構築 - JupyterLab - Project Jupyter の次世代ユーザーインターフェース]] も参照🤔\\
  
 === JupyterLab3 基本セット === === JupyterLab3 基本セット ===
行 605: 行 625:
 </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">&apos;--only-binary=:all:&apos;</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> 
  
 === 仮想環境一覧 === === 仮想環境一覧 ===
  • python/pipx.txt
  • 最終更新: 2024/03/28 03:30
  • by ともやん