LooseVersion ModuleNotFoundError: in python for distutils, setuptools, pkg_resources, and easy_install
In python 3.12 they Do not pre-install setuptools in virtual environments created with venv. This means that distutils, setuptools, pkg_resources, and easy_install will no longer available by default; to access these run pip install setuptools in the activated virtual environment.
This also works in the normal environment
for more python docs