Put the url into additional boards manager URLs
.
Select the board from the list.
If the error happens, the command may solve the problem.
sed -i -e 's/=python /=python3 /g' ~/Library/Arduino15/packages/esp32/hardware/esp32/1.0.6/platform.txt
https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/15