0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ensurepip を使って pip を再インストール

Posted at

Python の仮想環境で次のエラーが出た時の解決方法

$ pip --version
Traceback (most recent call last):
  File "/home/uchida/myenv/bin/pip", line 5, in <module>
    from pip._internal.cli.main import main
ModuleNotFoundError: No module named 'pip'

ensurepip を使って pip を再インストール

python -m ensurepip --upgrade

確認

$ pip --version
pip 25.0 from /home/uchida/myenv/lib/python3.13/site-packages/pip (python 3.13)
```
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?