Did that ... install python2 from above link... Same error message
exec: "python": executable file not found in $PATH
Error compiling for board Adafruit ESP32 Feather.
Python is now python2
If I use terminal,
python
Python 2.7.18 (v2.7.18:8d21aa21f2, Apr 19 2020, 20:48:48)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
I fixed this issue and please following steps to resolve this issue and theres no need to restart Arduino app at any point in the steps.
In Arduino preferences, enable Show verbose output during [ ] compilation [ ] upload and compile again
Notice the entire command where it is failing and you must see it will probably be failing at python .../gen_esp32part.py ...
Edit the board compiler's platform config using the command open $HOME/Library/Arduino15/packages/esp32/hardware/esp32/2.0.2/platform.txt (or use any text editor you like)
Search for gen_esp32part.py and replace that python with entire path of your python. Like below
# From
tools.gen_esp32part.cmd=python "{runtime.platform.path}/tools/gen_esp32part.py"
# To
tools.gen_esp32part.cmd=/usr/local/bin/python "{runtime.platform.path}/tools/gen_esp32part.py"
# From
tools.gen_esp32part.cmd=python "{runtime.platform.path}/tools/gen_esp32part.py"
# To
tools.gen_esp32part.cmd=/usr/local/bin/python "{runtime.platform.path}/tools/gen_esp32part.py"
Sketch uses 1023702 bytes (78%) of program storage space. Maximum is 1310720 bytes.
Global variables use 56056 bytes (17%) of dynamic memory, leaving 271624 bytes for local variables. Maximum is 327680 bytes.
python /Users/sally/Library/Arduino15/packages/esp32/hardware/esp32/1.0.6/tools/espota.py -i 192.168.2.187 -p 3232 --auth= -f /var/folders/3f/qgrplnzj7yjf75sf6y6wjr600000gn/T/arduino_build_529497/DS18B20_Final_21B.ino.bin
java.io.IOException: Cannot run program "python": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
Looking for "python"... don't know where it is looking
java.io.IOException: Cannot run program "python": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)