差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン最新のリビジョン両方とも次のリビジョン | ||
python:pipx [2024/02/10 17:00] – [仮想環境一覧] ともやん | python:pipx [2024/03/27 09:14] – [PATH 環境変数の設定] ともやん | ||
---|---|---|---|
行 10: | 行 10: | ||
===== インストール ===== | ===== インストール ===== | ||
- | 公式: [[https://pypa.github.io/pipx/ | + | 公式: [[https://pipx.pypa.io/stable/# |
Fedora\\ | Fedora\\ | ||
<WRAP color_term> | <WRAP color_term> | ||
<WRAP color_command>< | <WRAP color_command>< | ||
- | <b class=GRN> | + | <font color="# |
</ | </ | ||
<WRAP color_result>< | <WRAP color_result>< | ||
行 69: | 行 69: | ||
==== PATH 環境変数の設定 ==== | ==== PATH 環境変数の設定 ==== | ||
+ | <WRAP round important 90% minfont_12> | ||
+ | < | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <font color="# | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | <font color="# | ||
+ | <font color="# | ||
+ | <font color="# | ||
+ | <font color="# | ||
+ | <font color="# | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
<WRAP color_term> | <WRAP color_term> | ||
<WRAP color_command>< | <WRAP color_command>< | ||
行 97: | 行 114: | ||
<WRAP column 100%> | <WRAP column 100%> | ||
- | <WRAP left round tip 80%> | + | <WRAP left round tip 80% minfont_12> |
zsh の場合は < | zsh の場合は < | ||
行 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> | ||
行 496: | 行 513: | ||
</ | </ | ||
- | ==== JupyterLab | + | ==== 複数バージョンの混在 |
+ | |||
+ | === JupyterLab === | ||
+ | [[python: | ||
=== JupyterLab3 基本セット === | === JupyterLab3 基本セット === | ||
行 605: | 行 625: | ||
</ | </ | ||
- | === jupyterlab-drawio === | ||
- | [[https:// | ||
- | <WRAP color_term> | ||
- | <WRAP color_command>< | ||
- | <font color="# | ||
- | </ | ||
- | <WRAP color_result>< | ||
- | injected package < | ||
- | done! ✨ 🌟 ✨ | ||
- | </ | ||
- | </ | ||
- | |||
- | === jupyterlab-lsp === | ||
- | [[https:// | ||
- | [[git> | ||
- | [[git> | ||
- | |||
- | <WRAP group> | ||
- | <WRAP left tip 80%> | ||
- | [[https:// | ||
- | < | ||
- | </ | ||
- | </ | ||
- | |||
- | <WRAP color_term> | ||
- | <WRAP color_command>< | ||
- | <font color="# | ||
- | </ | ||
- | <WRAP color_result>< | ||
- | injected package jupyterlab-lsp into venv jupyterlab4 | ||
- | done! ✨ 🌟 ✨ | ||
- | </ | ||
- | </ | ||
- | |||
- | <WRAP color_term> | ||
- | <WRAP color_command>< | ||
- | <font color="# | ||
- | 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 | ||
- | </ | ||
- | <WRAP color_result_long>< | ||
- | <b class=BOLD> | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | <span style=" | ||
- | ├─ 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=" | ||
- | ├─ @gar/ | ||
- | ├─ @google-cloud/ | ||
- | ├─ @google-cloud/ | ||
- | ├─ @google-cloud/ | ||
- | ├─ @google-cloud/ | ||
- | ├─ @mapbox/ | ||
- | ├─ @npmcli/ | ||
- | ├─ @npmcli/ | ||
- | ├─ @types/ | ||
- | ├─ 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. | ||
- | </ | ||
- | </ | ||
=== 仮想環境一覧 === | === 仮想環境一覧 === | ||
行 910: | 行 701: | ||
</ | </ | ||
</ | </ | ||
- | |||
==== JupyterLab の更新 ==== | ==== JupyterLab の更新 ==== | ||
行 972: | 行 762: | ||
<WRAP color_term> | <WRAP color_term> | ||
<WRAP color_command>< | <WRAP color_command>< | ||
- | <span style="color:# | + | <font color="# |
</ | </ | ||
<WRAP color_result>< | <WRAP color_result>< | ||
- | 3.6.5 | + | Selected Jupyter core packages... |
+ | IPython | ||
+ | ipykernel | ||
+ | ipywidgets | ||
+ | jupyter_client | ||
+ | jupyter_core | ||
+ | jupyter_server | ||
+ | jupyterlab | ||
+ | nbclient | ||
+ | nbconvert | ||
+ | nbformat | ||
+ | notebook | ||
+ | qtconsole | ||
+ | traitlets | ||
</ | </ | ||
</ | </ | ||
行 982: | 行 785: | ||
<WRAP color_term> | <WRAP color_term> | ||
<WRAP color_command>< | <WRAP color_command>< | ||
- | <span style="color:# | + | <font color="# |
</ | </ | ||
<WRAP color_result>< | <WRAP color_result>< | ||
- | | + | injected package < |
- | done! ✨ 🌟 ✨</ | + | done! ✨ 🌟 ✨ |
</ | </ | ||
</ | </ | ||
+ | または、pipx inject する際にバージョンを指定しておく🤔\\ | ||
<WRAP color_term> | <WRAP color_term> | ||
<WRAP color_command>< | <WRAP color_command>< | ||
- | <span style="color:# | + | <font color="# |
+ | </pre></ | ||
+ | <WRAP color_result>< | ||
+ | injected package < | ||
+ | done! ✨ 🌟 ✨ | ||
+ | injected package < | ||
+ | done! ✨ 🌟 ✨ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <font color="# | ||
</ | </ | ||
<WRAP color_result>< | <WRAP color_result>< | ||
- | 3.6.5 | + | Selected Jupyter core packages... |
+ | IPython | ||
+ | ipykernel | ||
+ | ipywidgets | ||
+ | jupyter_client | ||
+ | jupyter_core | ||
+ | jupyter_server | ||
+ | jupyterlab | ||
+ | nbclient | ||
+ | nbconvert | ||
+ | nbformat | ||
+ | notebook | ||
+ | qtconsole | ||
+ | traitlets | ||
</ | </ | ||
</ | </ | ||
行 1220: | 行 1049: | ||
===== トラブルシューティング ===== | ===== トラブルシューティング ===== | ||
+ | |||
+ | ==== zsh: compdef: コマンドが見つかりませんでした... エラーが発生する😢 ==== | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <font color="# | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | zsh: compdef: コマンドが見つかりませんでした... | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <font color="# | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | <font color="# | ||
+ | export PATH=& | ||
+ | <b class=DiYE> | ||
+ | autoload bashcompinit & | ||
+ | eval & | ||
+ | </ | ||
+ | </ | ||
==== ModuleNotFoundError: | ==== ModuleNotFoundError: | ||
行 1676: | 行 1529: | ||
</ | </ | ||
</ | </ | ||
+ | |||
===== 参考文献 ===== | ===== 参考文献 ===== | ||
[[https:// | [[https:// | ||
+ | [[git> | ||
+ | [[https:// | ||
==== 付録 ==== | ==== 付録 ==== | ||
[[tw> | [[tw> | ||