差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン | |||
python:pip [2024/03/28 01:06] – [ディストリビューションの pip を最新版に更新する場合] ともやん | python:pip [2024/03/28 01:58] (現在) – [仮想環境の pip を最新版に更新する場合] ともやん | ||
---|---|---|---|
行 886: | 行 886: | ||
=== 仮想環境の pip を最新版に更新する場合 === | === 仮想環境の pip を最新版に更新する場合 === | ||
- | <code> | + | <WRAP color_term> |
- | (py3_venv) $ pip -V | + | <WRAP color_command>< |
+ | (py3_venv) | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
pip 18.1 from / | pip 18.1 from / | ||
- | </code> | + | </pre></ |
+ | </WRAP> | ||
pip を最新版に更新する。\\ | pip を最新版に更新する。\\ | ||
- | < | + | < |
- | <code> | + | <WRAP color_command>< |
- | (py3_venv) $ python -m pip install -U pip | + | (py3_venv) |
+ | </ | ||
+ | <WRAP color_result>< | ||
Looking in indexes: https:// | Looking in indexes: https:// | ||
Collecting pip | Collecting pip | ||
行 904: | 行 910: | ||
Successfully uninstalled pip-18.1 | Successfully uninstalled pip-18.1 | ||
Successfully installed pip-21.1.1 | Successfully installed pip-21.1.1 | ||
- | </code> | + | </pre></ |
</ | </ | ||
更新後のバージョン確認。\\ | 更新後のバージョン確認。\\ | ||
- | <code> | + | <WRAP color_term> |
- | (py3_venv) $ pip -V | + | <WRAP color_command>< |
+ | (py3_venv) | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
pip 21.1.1 from / | pip 21.1.1 from / | ||
- | </code> | + | </pre></ |
+ | </WRAP> | ||
**pip list -o** が正常に利用できることを確認する。\\ | **pip list -o** が正常に利用できることを確認する。\\ | ||
- | <code> | + | <WRAP color_term> |
- | (py3_venv) | + | <WRAP color_command>< |
+ | <font color="# | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
Package | Package | ||
---------- -------- --------- ----- | ---------- -------- --------- ----- | ||
行 923: | 行 936: | ||
supervisor 4.2.1 4.2.2 wheel | supervisor 4.2.1 4.2.2 wheel | ||
youtube-dl 2021.1.8 2021.4.26 wheel | youtube-dl 2021.1.8 2021.4.26 wheel | ||
- | </code> | + | </pre></ |
+ | </WRAP> | ||
==== システムの古い pip ラッパー📯が新しい pip モジュールを実行してしまう場合🤔 ==== | ==== システムの古い pip ラッパー📯が新しい pip モジュールを実行してしまう場合🤔 ==== |