# Exec: "python": executable file not found in $PATH

**URL:** <https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847>\
**Category:** IDE 1.x\
**Created:** [March 21, 2022, 6:41pm UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847 "2022-03-21T18:41:50Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![J-M-L](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/j-m-l/32/766245_2.png) [@J-M-L](https://forum.arduino.cc/u/J-M-L)\
**Post date:** [April 24, 2022, 12:52pm UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/16 "2022-04-24T12:52:40Z")

</div>

running this command in Terminal.app under your current user

```plaintext
sed -i -e 's/=python /=python3 /g' ~/Library/Arduino15/packages/esp32/hardware/esp32/*/platform.txt

```

seems to fix it.The command modifies all the platform.txt files under your local installation of the ESP32 tools (~/Library/Arduino15/packages/esp32/hardware/esp32) and replaces the word python by python3 wherever it finds it

(cf [Deprecation of Python 2. Solution · Issue #4717 · espressif/arduino-esp32 · GitHub](https://github.com/espressif/arduino-esp32/issues/4717#issuecomment-1070801525))

---

_[View the full topic](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847)._
