Python 3.12 does not come with a stdlib distutils module[1], because distutils was deprecated in 3.10 and removed in 3.12. Ubuntu 24.04 ships Python 3.12.
To solve the issue, 'python3-setuptools' should be installed as dependency in Ubuntu 24.04 and later.
Python 3.12 does not come with a stdlib distutils module[1], because distutils was deprecated in 3.10 and removed in 3.12. Ubuntu 24.04 ships Python 3.12.
To solve the issue, 'python3- setuptools' should be installed as dependency in Ubuntu 24.04 and later.
[1]: https:/ /docs.python. org/3/whatsnew/ 3.12.html