It was deprecated in Python 3.10 by PEP 632 “Deprecate distutils module”. For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils.
https://docs.python.org/3.12/whatsnew/3.12.html
distutils is used in source code: /undetected_chromedriver/patcher.py
It was deprecated in Python 3.10 by PEP 632 “Deprecate distutils module”. For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils.
https://docs.python.org/3.12/whatsnew/3.12.html
distutils is used in source code: /undetected_chromedriver/patcher.py