ESP32: problem with compilation on MacOS 12.3 Monterey

This is the status on my MacOS Monterey 13.2. (M1)
~ % which python
/usr/local/bin/python

~ % which python3
/Library/Frameworks/Python.framework/Versions/3.10/bin/python3

~ % echo $PATH
/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Compilation of existing code that successfully compiled in 2021,
1.) when starting with GUI gives an error (lack of python)
2.) and when starting with terminal it gives same error but asks for Command Line Developer Tools install (I tried it several times long minutes... , and being asked again and again after end of compilation, and error).....