LoginSignup
1
0

ModuleNotFoundError: No module named 'distutils.cmd'

Posted at

エラーの内容について

!apt-get install python3-pip
を入力した際に、
ModuleNotFoundError: No module named 'distutils.cmd'
のエラーが出る。

!apt-get install python3-distutils
を実行しても
python3-distutils is already the newest version (3.10.8-1~22.04).
と出るだけで、元のエラーが解決しない

解決方法について

!apt-get install python3.x-distutils
として、pythonのバージョンを指定してあげる

私の場合は、python3.9だったので、
!apt-get install python3.9-distutils
を実行した後、
!apt-get install python3-pip
を実行することで解決できた。

1
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
1
0