"python": executable file not found in $PATH Error compiling for board ESP32 Dev Module

see this for how we solved it on a Mac

may be it's similar on linux and you need a direct call to python3