python:pipx

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
python:pipx [2024/02/20 20:43] – [参考文献] ともやんpython:pipx [2024/03/28 03:30] (現在) – [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_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> pipx ensurepath+<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> 
 + 
 +pipx 1.4.3 では <html><code>userpath.append</code></html> で pipx の location_str (~/.local/bin) を追加する実装\\ 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">curl</font> <font color="#A347BA">-L</font> https://raw.githubusercontent.com/pypa/pipx/1.4.3/src/pipx/commands/ensure_path.py <font color="#12488B"><b>2&gt;</b></font><u style="text-decoration-style:single">/dev/null</u> <font color="#12488B"><b>|</b></font> <font color="#26A269">bat</font> <font color="#A347BA">-n</font> <font color="#A347BA">-l</font> py <font color="#A347BA">-r</font> 54:64 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre> 
 +<font color="#444444">  54</font> <font color="#F92672">def</font><font color="#F8F8F2"> </font><font color="#A6E22E">ensure_path</font><font color="#F8F8F2">(</font><font color="#FD971F">location</font><font color="#F8F8F2">: Path, </font><font color="#F92672">*</font><font color="#F8F8F2">, </font><font color="#FD971F">force</font><font color="#F8F8F2">: </font><font color="#A6E22E">bool</font><font color="#F8F8F2">) -&gt; Tuple[</font><font color="#A6E22E">bool</font><font color="#F8F8F2">, </font><font color="#A6E22E">bool</font><font color="#F8F8F2">]:</font> 
 +<font color="#444444">  55</font> <font color="#F8F8F2">    </font><font color="#75715E">&quot;&quot;&quot;Ensure location is in user&apos;s PATH or add it to PATH.</font> 
 +<font color="#444444">  56</font> <font color="#75715E">    Returns True if location was added to PATH</font> 
 +<font color="#444444">  57</font> <font color="#75715E">    &quot;&quot;&quot;</font> 
 +<font color="#444444">  58</font> <font color="#F8F8F2">    location_str </font><font color="#F92672">=</font><font color="#F8F8F2"> </font><font color="#A6E22E">str</font><font color="#F8F8F2">(location)</font> 
 +<font color="#444444">  59</font> <font color="#F8F8F2">    path_added </font><font color="#F92672">=</font><font color="#F8F8F2"> </font><font color="#BE84FF">False</font> 
 +<font color="#444444">  60</font> <font color="#F8F8F2">    need_shell_restart </font><font color="#F92672">=</font><font color="#F8F8F2"> userpath.need_shell_restart(location_str)</font> 
 +<font color="#444444">  61</font> <font color="#F8F8F2">    in_current_path </font><font color="#F92672">=</font><font color="#F8F8F2"> userpath.in_current_path(location_str)</font> 
 +<font color="#444444">  62</font>  
 +<font color="#444444">  63</font> <font color="#F8F8F2">    </font><font color="#F92672">if</font><font color="#F8F8F2"> force </font><font color="#F92672">or</font><font color="#F8F8F2"> (</font><font color="#F92672">not</font><font color="#F8F8F2"> in_current_path </font><font color="#F92672">and</font><font color="#F8F8F2"> </font><font color="#F92672">not</font><font color="#F8F8F2"> need_shell_restart):</font> 
 +<font color="#444444">  64</font> <font color="#F8F8F2">        path_added </font><font color="#F92672">=</font><font color="#F8F8F2"> userpath.append(location_str, </font><font color="#E6DB74">&quot;pipx&quot;</font><font color="#F8F8F2">)</font> 
 +</pre></html></WRAP> 
 +</WRAP> 
 + 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">which</font> pip <font color="#12488B"><b>&amp;&amp;</b></font> <font color="#26A269">python</font> <font color="#A347BA">-s</font> <font color="#A347BA">-m</font> pip <font color="#A347BA">-V</font> <font color="#12488B"><b>&amp;&amp;</b></font> <font color="#26A269">echo</font> <font color="#A2734C">&apos;---- ✂  ----&apos;</font> <font color="#12488B"><b>&amp;&amp;</b></font> <font color="#26A269">python</font> <font color="#A347BA">-m</font> pip <font color="#A347BA">-V</font> <font color="#12488B"><b>&amp;&amp;</b></font> <font color="#26A269">echo</font> <font color="#A2734C">&apos;---- ✂  ----&apos;</font> <font color="#12488B"><b>&amp;&amp;</b></font> <font color="#26A269">echo</font> $PATH <font color="#12488B"><b>|</b></font> <font color="#26A269">grep</font> : <font color="#12488B"><b>&amp;&amp;</b></font> <font color="#26A269">echo</font> <font color="#A2734C">&apos;---- ✂  ----&apos;</font> <font color="#12488B"><b>&amp;&amp;</b></font> <font color="#26A269">python</font> <font color="#A347BA">-m</font> site 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre> 
 +/usr/bin/pip 
 +pip 23.2.1 from /usr/lib/python3.12/site-packages/pip (python 3.12) 
 +---- ✂  ---- 
 +pip 23.2.1 from /usr/lib/python3.12/site-packages/pip (python 3.12) 
 +---- ✂  ---- 
 +/home/tomoyan/miniforge3/condabin<font color="#C01C28"><b>:</b></font>/home/tomoyan/.deno/bin<font color="#C01C28"><b>:</b></font>/home/tomoyan/.anyenv/envs/nodenv/shims<font color="#C01C28"><b>:</b></font>/home/tomoyan/.anyenv/envs/nodenv/bin<font color="#C01C28"><b>:</b></font>/home/tomoyan/.anyenv/bin<font color="#C01C28"><b>:</b></font>/home/tomoyan/.cargo/bin<font color="#C01C28"><b>:</b></font>/usr/local/bin<font color="#C01C28"><b>:</b></font>/usr/local/sbin<font color="#C01C28"><b>:</b></font>/usr/bin<font color="#C01C28"><b>:</b></font>/usr/sbin<font color="#C01C28"><b>:</b></font>/home/tomoyan/.local/bin<font color="#C01C28"><b>:</b></font>/home/tomoyan/.local/bin 
 +---- ✂  ---- 
 +sys.path = [ 
 +    &apos;/home/tomoyan&apos;, 
 +    &apos;/usr/lib64/python312.zip&apos;, 
 +    &apos;/usr/lib64/python3.12&apos;, 
 +    &apos;/usr/lib64/python3.12/lib-dynload&apos;, 
 +    &apos;/home/tomoyan/.local/lib/python3.12/site-packages&apos;, 
 +    &apos;/usr/lib64/python3.12/site-packages&apos;, 
 +    &apos;/usr/lib/python3.12/site-packages&apos;, 
 +
 +USER_BASE: &apos;/home/tomoyan/.local&apos; (exists) 
 +USER_SITE: &apos;/home/tomoyan/.local/lib/python3.12/site-packages&apos; (exists) 
 +ENABLE_USER_SITE: True 
 +</pre></html></WRAP> 
 +</WRAP> 
 + 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">pip</font> install <font color="#A347BA">--upgrade</font> pip 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre> 
 +Defaulting to user installation because normal site-packages is not writeable 
 +Requirement already satisfied: pip in /usr/lib/python3.12/site-packages (23.2.1) 
 +Collecting pip 
 +  Obtaining dependency information for pip from https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl.metadata 
 +  Downloading pip-24.0-py3-none-any.whl.metadata (3.6 kB) 
 +Downloading pip-24.0-py3-none-any.whl (2.1 MB) 
 +   <font color="#729C1F">━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</font> <font color="#26A269">2.1/2.1 MB</font> <font color="#C01C28">302.4 kB/s</font> eta <font color="#2AA1B3">0:00:00</font> 
 +Installing collected packages: pip 
 +Successfully installed pip-24.0 
 +</pre></html></WRAP> 
 +</WRAP> 
 + 
 +</WRAP> 
 + 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">python3</font> <font color="#A347BA">-m</font> pipx ensurepath
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP group> <WRAP group>
行 97: 行 178:
  
 <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: 行 223:
  
 <WRAP column 100%> <WRAP column 100%>
-<WRAP left round tip 80%>+<WRAP left round tip 80% minfont_12>
  
 <WRAP color_term> <WRAP color_term>
行 496: 行 577:
 </WRAP> </WRAP>
  
-==== JupyterLab 複数バージョンの混在 ====+==== 複数バージョンの混在 [--suffix] ==== 
 + 
 +=== JupyterLab === 
 +[[python:jupyterlab#python_環境を_pipx_で構築|Python 環境を pipx で構築 - JupyterLab - Project Jupyter の次世代ユーザーインターフェース]] も参照🤔\\
  
 === JupyterLab3 基本セット === === JupyterLab3 基本セット ===
行 605: 行 689:
 </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> 
- 
-=== jupyterlab-lsp === 
-[[https://jupyterlab-lsp.readthedocs.io/en/2.x/index.html|Jupyter[Lab] Language Server Protocol — Jupyter[Lab] Language Server documentation]] [[gtr>https://jupyterlab-lsp.readthedocs.io/en/2.x/index.html|翻訳]]\\ 
-[[git>jupyter-lsp/jupyterlab-lsp|jupyter-lsp/jupyterlab-lsp: Coding assistance for JupyterLab (code navigation + hover suggestions + linters + autocompletion + rename) using Language Server Protocol]] [[gtr>https://github.com/jupyter-lsp/jupyterlab-lsp|翻訳]]\\ 
-[[git>python-lsp/python-lsp-server|python-lsp/python-lsp-server: Fork of the python-language-server project, maintained by the Spyder IDE team and the community]] [[gtr>https://github.com/python-lsp/python-lsp-server|翻訳]]\\ 
- 
-<WRAP group> 
-<WRAP left tip 80%> 
-[[https://jupyterlab-lsp.readthedocs.io/en/2.x/Installation.html|Installation — Jupyter[Lab] Language Server documentation]] [[gtr>https://jupyterlab-lsp.readthedocs.io/en/2.x/Installation.html|翻訳]]\\ 
-<html><code>jupyterlab-lsp</code></html> は JupyterLab 用の拡張機能で、<html><code>jupyter-lsp</code></html> は notebook 用である。 
-</WRAP> 
-</WRAP> 
- 
-<WRAP color_term> 
-<WRAP color_command><html><pre> 
-<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">pipx</font> inject jupyterlab4 jupyterlab-lsp 
-</pre></html></WRAP> 
-<WRAP color_result><html><pre> 
-  injected package jupyterlab-lsp into venv jupyterlab4 
-done! ✨ 🌟 ✨ 
-</pre></html></WRAP> 
-</WRAP> 
- 
-<WRAP color_term> 
-<WRAP color_command><html><pre> 
-<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">jlpm4</font> add <font color="#75507B">--dev</font> \ 
-    bash-language-server \ 
-    dockerfile-language-server-nodejs \ 
-    javascript-typescript-langserver \ 
-    sql-language-server \ 
-    unified-language-server \ 
-    vscode-css-languageserver-bin \ 
-    vscode-html-languageserver-bin \ 
-    vscode-json-languageserver-bin \ 
-    yaml-language-server 
-</pre></html></WRAP> 
-<WRAP color_result_long><html><pre> 
-<b class=BOLD>yarn add v1.21.1</b> 
-<span style="color:#A2734C">warning</span> package.json: No license field 
-<span style="color:#A2734C">warning</span> package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. 
-<span style="color:#A2734C">warning</span> No license field 
-<span style="color:#7D7D7D">[1/4] Resolving packages...</span> 
-<span style="color:#A2734C">warning</span> javascript-typescript-langserver &gt; string-similarity@2.0.0: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. 
-<span style="color:#A2734C">warning</span> sql-language-server &gt; sqlite3 &gt; node-gyp &gt; make-fetch-happen &gt; cacache &gt; @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs 
-<span style="color:#7D7D7D">[2/4] Fetching packages...</span> 
-<span style="color:#A2734C">warning</span> vscode-languageclient@6.1.4: The engine &quot;vscode&quot; appears to be invalid. 
-<span style="color:#13496F">info</span> fsevents@2.3.3: The platform &quot;linux&quot; is incompatible with this module. 
-<span style="color:#13496F">info</span> &quot;fsevents@2.3.3&quot; is an optional dependency and failed compatibility check. Excluding it from installation. 
-<span style="color:#7D7D7D">[3/4] Linking dependencies...</span> 
-<span style="color:#7D7D7D">[4/4] Building fresh packages...</span> 
-<span style="color:#26A269">success</span> Saved lockfile. 
-<span style="color:#A2734C">warning</span> No license field 
-<span style="color:#A2734C">warning</span> Your current version of Yarn is out of date. The latest version is &quot;1.22.19&quot;, while you&apos;re on &quot;1.21.1&quot;. 
-<span style="color:#26A269">success</span> Saved 150 new dependencies. 
-<span style="color:#13496F">info</span> Direct dependencies 
-├─ bash-language-server@5.0.0 
-├─ dockerfile-language-server-nodejs@0.11.0 
-├─ javascript-typescript-langserver@2.11.3 
-├─ sql-language-server@1.7.0 
-├─ unified-language-server@3.1.0 
-├─ vscode-css-languageserver-bin@1.4.0 
-├─ vscode-html-languageserver-bin@1.4.0 
-├─ vscode-json-languageserver-bin@1.0.1 
-└─ yaml-language-server@1.14.0 
-<span style="color:#13496F">info</span> All dependencies 
-├─ @gar/promisify@1.1.3 
-├─ @google-cloud/bigquery@5.12.0 
-├─ @google-cloud/common@3.10.0 
-├─ @google-cloud/paginator@3.0.7 
-├─ @google-cloud/projectify@2.1.1 
-├─ @mapbox/node-pre-gyp@1.0.11 
-├─ @npmcli/fs@1.1.1 
-├─ @npmcli/move-file@1.1.2 
-├─ @types/pg@8.10.2 
-├─ abbrev@1.1.1 
-├─ abort-controller@3.0.0 
-├─ agentkeepalive@4.5.0 
-├─ aggregate-error@3.1.0 
-├─ ansicolors@0.3.2 
-├─ aproba@2.0.0 
-├─ are-we-there-yet@2.0.0 
-├─ asn1@0.2.6 
-├─ assertion-error@1.1.0 
-├─ base64-js@1.5.1 
-├─ bash-language-server@5.0.0 
-├─ bcrypt-pbkdf@1.0.2 
-├─ big.js@6.2.1 
-├─ bignumber.js@9.1.2 
-├─ buffer-equal-constant-time@1.0.1 
-├─ bufrw@1.3.0 
-├─ cacache@15.3.0 
-├─ cardinal@2.1.1 
-├─ chai-as-promised@7.1.1 
-├─ chai@4.3.8 
-├─ chownr@2.0.0 
-├─ clean-stack@2.2.0 
-├─ color-support@1.1.3 
-├─ deep-eql@4.1.3 
-├─ delegates@1.0.0 
-├─ denque@2.1.0 
-├─ detect-libc@2.0.2 
-├─ dockerfile-language-server-nodejs@0.11.0 
-├─ dockerfile-language-service@0.11.0 
-├─ duplexify@4.1.2 
-├─ ecdsa-sig-formatter@1.0.11 
-├─ encoding@0.1.13 
-├─ ent@2.2.0 
-├─ env-paths@2.2.1 
-├─ err-code@2.0.3 
-├─ error@7.0.2 
-├─ event-target-shim@5.0.1 
-├─ fast-json-patch@2.2.1 
-├─ fast-text-encoding@1.0.6 
-├─ fs-minipass@2.1.0 
-├─ gauge@3.0.2 
-├─ gcp-metadata@4.3.1 
-├─ generate-function@2.3.1 
-├─ google-auth-library@7.14.1 
-├─ google-p12-pem@3.1.4 
-├─ gtoken@5.3.2 
-├─ has-unicode@2.0.1 
-├─ hexer@1.5.0 
-├─ http-cache-semantics@4.1.1 
-├─ humanize-ms@1.2.1 
-├─ iconv-lite@0.6.3 
-├─ indent-string@4.0.0 
-├─ infer-owner@1.0.4 
-├─ ip@2.0.0 
-├─ is-lambda@1.0.1 
-├─ is-property@1.0.2 
-├─ is@3.3.0 
-├─ iterare@1.2.1 
-├─ jaeger-client@3.19.0 
-├─ javascript-typescript-langserver@2.11.3 
-├─ json-bigint@1.0.0 
-├─ jwa@2.0.0 
-├─ lodash@4.17.21 
-├─ long@4.0.0 
-├─ loupe@2.3.6 
-├─ make-fetch-happen@9.1.0 
-├─ minimist@1.2.8 
-├─ minipass-fetch@1.4.1 
-├─ minipass-pipeline@1.2.4 
-├─ minipass-sized@1.0.3 
-├─ minizlib@2.1.2 
-├─ mkdirp@1.0.4 
-├─ mysql2@2.3.3 
-├─ mz@2.7.0 
-├─ named-placeholders@1.1.3 
-├─ negotiator@0.6.3 
-├─ node-addon-api@4.3.0 
-├─ node-forge@1.3.1 
-├─ node-gyp@8.4.1 
-├─ node-ssh-forward@0.6.3 
-├─ nopt@5.0.0 
-├─ npmlog@5.0.1 
-├─ object-assign@4.1.1 
-├─ object-hash@1.3.1 
-├─ obuf@1.1.2 
-├─ opentracing@0.14.7 
-├─ p-event@4.2.0 
-├─ p-map@4.0.0 
-├─ p-timeout@3.2.0 
-├─ pathval@1.1.1 
-├─ peggy@3.0.2 
-├─ pg-cloudflare@1.1.1 
-├─ pg-connection-string@2.6.2 
-├─ pg-numeric@1.0.2 
-├─ pg-pool@3.6.1 
-├─ pg-protocol@1.6.0 
-├─ pg@8.11.3 
-├─ postgres-range@1.1.3 
-├─ process@0.10.1 
-├─ promise-inflight@1.0.1 
-├─ promise-retry@2.0.1 
-├─ readable-stream@3.6.2 
-├─ redeyed@2.1.1 
-├─ retry-request@4.2.2 
-├─ retry@0.12.0 
-├─ rxjs@5.5.12 
-├─ semaphore-async-await@1.5.1 
-├─ seq-queue@0.0.5 
-├─ smart-buffer@4.2.0 
-├─ socks-proxy-agent@6.2.1 
-├─ socks@2.7.1 
-├─ source-map-generator@0.8.0 
-├─ sql-language-server@1.7.0 
-├─ sqlint@1.7.0 
-├─ sqlite3@5.1.6 
-├─ sqlstring@2.3.3 
-├─ ssh2-streams@0.4.10 
-├─ ssh2@0.8.9 
-├─ ssri@8.0.1 
-├─ stream-shift@1.0.1 
-├─ streamsearch@0.1.2 
-├─ string-similarity@2.0.0 
-├─ stubs@3.0.0 
-├─ symbol-observable@1.0.1 
-├─ tar@6.2.0 
-├─ teeny-request@7.2.0 
-├─ thenify-all@1.6.0 
-├─ thenify@3.3.1 
-├─ thriftrw@3.11.4 
-├─ tweetnacl@0.14.5 
-├─ type-detect@4.0.8 
-├─ unified-language-server@3.1.0 
-├─ unique-filename@1.1.1 
-├─ unique-slug@2.0.2 
-├─ vscode-css-languageserver-bin@1.4.0 
-├─ vscode-html-languageserver-bin@1.4.0 
-├─ vscode-json-languageserver-bin@1.0.1 
-├─ wide-align@1.1.5 
-├─ xorshift@1.2.0 
-├─ xtend@4.0.2 
-└─ yaml-language-server@1.14.0 
-Done in 76.07s. 
-</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> 
  
 === 仮想環境一覧 === === 仮想環境一覧 ===
行 984: 行 826:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">jupyter-lab4</span> <span style="color:#A347BA">--version</span>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">jupyter4</font><font color="#FF9999"> </font><font color="#A347BA">--version</font>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-3.6.5+Selected Jupyter core packages... 
 +IPython          : 8.21.0 
 +ipykernel        : 6.29.2 
 +ipywidgets       : 8.1.2 
 +jupyter_client   : 8.6.0 
 +jupyter_core     : 5.7.1 
 +jupyter_server   : 2.12.5 
 +jupyterlab       : 3.6.
 +nbclient         : 0.9.0 
 +nbconvert        : 7.16.0 
 +nbformat         : 5.9.2 
 +notebook         : 6.5.4 
 +qtconsole        : not installed 
 +traitlets        : 5.14.1
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 994: 行 849:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">pipx</span> inject jupyterlab4 jupyterlab==4.1.1+<font color="#FF8700"><b>$</b></font> <font color="#26A269">pipx</font> inject jupyterlab4 jupyterlab==4.1.3
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-  <pre>  injected package <b>jupyterlab</b> into venv <b>jupyterlab4</b> +  injected package <b>jupyterlab</b> into venv <b>jupyterlab4</b> 
-done! ✨ 🌟 ✨</pre>+done! ✨ 🌟 ✨
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
  
 +または、pipx inject する際にバージョンを指定しておく🤔\\
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<span style="color:#FF8700"><b>$</b></span> <span style="color:#26A269">jupyter-lab4</span> <span style="color:#A347BA">--version</span>+<font color="#FF8700"><b>$</b></font> <font color="#26A269">pipx</font> inject jupyterlab4 jupyterlab-drawio jupyterlab==4.1.3 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre> 
 +  injected package <b>jupyterlab-drawio</b> into venv <b>jupyterlab4</b> 
 +done! ✨ 🌟 ✨ 
 +  injected package <b>jupyterlab</b> into venv <b>jupyterlab4</b> 
 +done! ✨ 🌟 ✨ 
 +</pre></html></WRAP> 
 +</WRAP> 
 + 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#26A269">jupyter4</font> <font color="#A347BA">--version</font>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-4.1.1+Selected Jupyter core packages... 
 +IPython          : 8.21.0 
 +ipykernel        : 6.29.2 
 +ipywidgets       : 8.1.2 
 +jupyter_client   : 8.6.0 
 +jupyter_core     : 5.7.1 
 +jupyter_server   : 2.12.5 
 +jupyterlab       : 4.1.3 
 +nbclient         : 0.9.0 
 +nbconvert        : 7.16.0 
 +nbformat         : 5.9.2 
 +notebook         : 6.5.4 
 +qtconsole        : not installed 
 +traitlets        : 5.14.1
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 1232: 行 1113:
  
 ===== トラブルシューティング ===== ===== トラブルシューティング =====
 +
 +==== zsh: compdef: コマンドが見つかりませんでした... エラーが発生する😢 ====
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">tmux</font>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +zsh: compdef: コマンドが見つかりませんでした...
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<html><code>~/.zprofile</code></html> に <html><code>autoload -Uz compinit &amp;&amp; compinit</code></html> を追加する🤔\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">nano</font><font color="#999999"> </font><font color="#999999"><u style="text-decoration-style:single">~/.zprofile</u></font>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +<font color="#06989A"># Created by `pipx` on 2024-02-02 08:14:31</font>
 +export PATH=&quot;$PATH:/home/tomoyan/.local/bin&quot;
 +<b class=DiYE>autoload -Uz compinit &amp;&amp; compinit</b>
 +autoload bashcompinit &amp;&amp; bashcompinit
 +eval &quot;$(register-python-argcomplete pipx)&quot;
 +</pre></html></WRAP>
 +</WRAP>
  
 ==== ModuleNotFoundError: No module named 'pipx' エラーで pipx が動作しない😇 ==== ==== ModuleNotFoundError: No module named 'pipx' エラーで pipx が動作しない😇 ====
行 1689: 行 1594:
 </WRAP> </WRAP>
  
-===== トラブルシューティング ===== 
  
 ===== 参考文献 ===== ===== 参考文献 =====
  • python/pipx.1708429411.txt.gz
  • 最終更新: 2024/02/20 20:43
  • by ともやん