LoginSignup
5
4

More than 1 year has passed since last update.

pip3をupgradeしたあと、`pip3`を使用時に`ModuleNotFoundError: No module named 'pip._internal'`となる際の解決策

Posted at

以下の通りpip3をupgradeしたあと

/usr/bin/python3 -m pip install --upgrade pip

以下のようにエラーが出るようになった

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

以下のようにすると解決

wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py

参考

https://pip.pypa.io/en/stable/installation/

5
4
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
5
4