I update Ubuntu 20.4 to 22.4 and after that pip is no longer working in the virtual environments based on python 3.9 and this is the error I get:
ModuleNotFoundError: No module named 'distutils.cmd'
What I understood from my searches is that the missing module was in Python3.8 and they suggested to install the module
sudo apt install python3.8-distutils
I did it and got this error:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python3.8-distutils is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from Another source
E: Package 'python3.8-distutils' has no installation candidate
I have no idea what to do.
– Austyns Apr 28 '23 at 12:09sudo apt install python3.9-distutils