Package installation fails with python 3.12 with error ModuleNotFoundError: No module named 'numpy.distutils'. Python 3.12 has officially removed distutils and it has been deprecated in python 3.10. This has caused errors with using python 3.12:
ModuleNotFoundError: No module named 'numpy.distutils'
and with deprecation warnings in older python versions:
DeprecationWarning: dep_util is Deprecated. Use functions from setuptools instead.