ModuleNotFoundError: No module named 'distutils.util' after upgrading to Ubuntu 20.04
6,492
In my case, I solved this with
sudo apt install python3.10-distutils
![assembler](https://i.stack.imgur.com/rGA81.jpg?s=256&g=1)
Comments
-
assembler almost 2 years
After upgrading to Ubuntu 20.04 I started receiving this error
ModuleNotFoundError: No module named 'distutils.util' for every
pip
command I run.I tried the solutions on ModuleNotFoundError: No module named 'distutils.util' and pip3 is pointing to the wrong version of python but nothing seems to be working.
Tried this:
python3 -m pip
and:
sudo apt-get install python3-distutils sudo apt-get install python3-apt
these two commands are telling me these packages are already installed, so I reintalled them but no light at the end of the tunnel.
Any solution for this?
I have a virtual environment running Python 3.6.9.
-
ThunderBird over 2 yearsThis does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From Review