LoginSignup
0
0

More than 1 year has passed since last update.

Ubuntu 18.04でpip install しようとすると"ModuleNotFoundError: No module named 'pip._internal'が出る。

Last updated at Posted at 2022-09-13

pip が見つからない

pip install pandas
"ModuleNotFoundError: No module named 'pip._internal'

と出る。。。
pip を再インストールする。

sudo apt install python-pip
sudo apt install curl
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
sudo python get-pip.py

バージョン確認

pip --version

apt update

sudo apt update

apt upgrade

sudo apt upgrade

pip3 もインストール

sudo apt install python3-pip
pip3 --version

あとはご自由にpip install

sudo pip install matplotlib
...

参考

Ubuntuでpip/pip3がインストールできないときの対処法 | Python:
https://www.bioerrorlog.work/entry/install-pip-pip3-ubuntu

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