久しぶりPythonを使おうと思ったらpipが動かない。
$ pip Traceback (most recent call last): File "/home/developer/jupyter/.venv/bin/pip", line 5, in <module> from pip._internal.cli.main import main ModuleNotFoundError: No module named 'pip'
Installation — pip documentation を参考に
$ wget https://bootstrap.pypa.io/get-pip.py $ python get-pip.py
無事に復旧...
$ pip -V pip 24.3.1 from /home/developer/jupyter/.venv/lib/python3.12/site-packages/pip (python 3.12)