# 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:** 20\
**Page:** 2

<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:** [June 10, 2022, 9:19am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/22 "2022-06-10T09:19:48Z")

</div>

glad it helped too

seems a lot of us needed that !

---

<div class="post-metadata">

**Author:** ![sschrijver](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@sschrijver](https://forum.arduino.cc/u/sschrijver)\
**Post date:** [June 26, 2022, 5:42am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/23 "2022-06-26T05:42:23Z")

</div>

Thanks, worked for me too!

---

<div class="post-metadata">

**Author:** ![alport](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@alport](https://forum.arduino.cc/u/alport)\
**Post date:** [July 2, 2022, 9:38am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/24 "2022-07-02T09:38:04Z")

</div>

That also worked for me. Thanks very much.  
But, although it may be obvious to some, that terminal command is one long line - and not two separate commands as it may appear in the solution!

---

<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:** [July 2, 2022, 9:52pm UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/25 "2022-07-02T21:52:38Z")

</div>

> [@alport](#):
>
> that terminal command is one long line - and not two separate commands as it may appear in the solution

indeed, it's just one unix command you execute.

I modified the format of the message so that it looks more like one line (the auto-formatting was playing tricks otherwise)

---

<div class="post-metadata">

**Author:** ![hufnagelsteve](https://avatars.discourse-cdn.com/v4/letter/h/a5b964/32.png) [@hufnagelsteve](https://forum.arduino.cc/u/hufnagelsteve)\
**Post date:** [July 18, 2022, 11:11am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/26 "2022-07-18T11:11:27Z")

</div>

Thx, it solved the problem  
this little tricks are very annoying --\> I know, one time solutions "forever"  
thx again

---

<div class="post-metadata">

**Author:** ![palanibsm](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@palanibsm](https://forum.arduino.cc/u/palanibsm)\
**Post date:** [August 1, 2022, 9:51am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/27 "2022-08-01T09:51:20Z")

</div>

> [@johnwasser](#):
>
> open /Applications/Arduino1.8.19.app

For me this works very well. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![mstetic](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mstetic](https://forum.arduino.cc/u/mstetic)\
**Post date:** [September 22, 2022, 1:17am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/29 "2022-09-22T01:17:01Z")

</div>

Hi to all  
I have same problem. Running suggested command result: zsh: "no matches found:..."  
I use macos Monteray, Arduino IDE and Heltec ESP32 Wifi Lora board.  
Please help  
Rgds

---

<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:** [September 22, 2022, 6:44am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/30 "2022-09-22T06:44:58Z")

</div>

Can you post the exact command you entered and exact error message?

Which IDE version?

---

<div class="post-metadata">

**Author:** ![pedotec](https://avatars.discourse-cdn.com/v4/letter/p/51bf81/32.png) [@pedotec](https://forum.arduino.cc/u/pedotec)\
**Post date:** [September 22, 2022, 10:05am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/31 "2022-09-22T10:05:25Z")

</div>

Worked for me. Thanks a lot!

---

<div class="post-metadata">

**Author:** ![mstetic](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mstetic](https://forum.arduino.cc/u/mstetic)\
**Post date:** [September 25, 2022, 12:24am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/32 "2022-09-25T00:24:47Z")

</div>

Hi  
After copiling any of examples, compiler generates this report on the end:  
Traceback (most recent call last):  
File "esptool.py", line 57, in   
File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03\_importers.py", line 389, in load\_module  
File "serial/tools/list\_ports.py", line 29, in   
File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03\_importers.py", line 389, in load\_module  
File "serial/tools/list\_ports\_posix.py", line 31, in   
File "/Library/Python/2.7/site-packages/PyInstaller/loader/pyimod03\_importers.py", line 389, in load\_module  
File "serial/tools/list\_ports\_osx.py", line 32, in   
ValueError: dlsym(RTLD\_DEFAULT, kIOMasterPortDefault): symbol not found  
Failed to execute script esptool

exit status 255

Compilation error: exit status 255  
Macos: Monterey v. 12.5.1  
Arduino IDE v. 2.0.0  
The board is Heltex LoRa 32  
Library: Heltec ESP32 dev board  
Runninge sugested command in terminal , returns:  
zsh: no matches found: /Users/mladanstetic/Library/Arduino15/packages/esp32/hardware/esp32/\*/platform.txt

Thanks

---

<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:** [September 25, 2022, 3:15am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/33 "2022-09-25T03:15:11Z")

</div>

Did you install the ESP32 environment?  
Try with the previous IDE 1.8.19

---

<div class="post-metadata">

**Author:** ![mstetic](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mstetic](https://forum.arduino.cc/u/mstetic)\
**Post date:** [September 25, 2022, 3:28am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/34 "2022-09-25T03:28:37Z")

</div>

I have tried with arduino ide 2 v 1.8.16. It want accept heltec board. It recognizes board but as incompatible one. ESP environment is to complicate to install for me. Thanks for help anyway.

---

<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:** [September 25, 2022, 3:35am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/35 "2022-09-25T03:35:18Z")

</div>

I’m using Monterey with a Mac with a USB C to USB adapter and this exact Lora32 Heltec board…. It just works fine for me with 1.8.19

---

<div class="post-metadata">

**Author:** ![mstetic](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mstetic](https://forum.arduino.cc/u/mstetic)\
**Post date:** [September 25, 2022, 11:51pm UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/36 "2022-09-25T23:51:55Z")

</div>

I have reinstalled arduino ide 1.8.18. and libraries as well. Still compailing generates errors. What is your version of Monterey update? My is 12.5.1  
Thanks

---

<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:** [September 26, 2022, 6:16am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/37 "2022-09-26T06:16:07Z")

</div>

I am up to date with the latest Monterey update (12.6 I think)

Did you install the ESP32 environment? It does not come with the IDE.

---

<div class="post-metadata">

**Author:** ![mstetic](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mstetic](https://forum.arduino.cc/u/mstetic)\
**Post date:** [September 29, 2022, 9:06am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/38 "2022-09-29T09:06:41Z")

</div>

I have done last update for macos and finaly works. No more python errors. Thanks for help.

---

<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:** [September 29, 2022, 9:10am UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/39 "2022-09-29T09:10:12Z")

</div>

good to know ! have fun

---

<div class="post-metadata">

**Author:** ![spudgunman](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@spudgunman](https://forum.arduino.cc/u/spudgunman)\
**Post date:** [December 3, 2022, 8:45pm UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/40 "2022-12-03T20:45:44Z")

</div>

wanted to mention in IDE2 dec2022 [Exec: "python": executable file not found in $PATH - #16 by J-M-L](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/16) got me up and running!

---

<div class="post-metadata">

**Author:** ![ericnevermore](https://avatars.discourse-cdn.com/v4/letter/e/db5fbb/32.png) [@ericnevermore](https://forum.arduino.cc/u/ericnevermore)\
**Post date:** [January 10, 2023, 5:56pm UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/41 "2023-01-10T17:56:27Z")

</div>

It works for me. I am using Arduino IDE 2.0.3 and Mac OS Ventura 13.0.1 on a Macbook Air 2020 i7. Later run the command you have to reboot the IDE.

---

<div class="post-metadata">

**Author:** ![burnt\_baguette](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/burnt_baguette/32/931219_2.png) [@burnt\_baguette](https://forum.arduino.cc/u/burnt_baguette)\
**Post date:** [March 11, 2023, 12:39pm UTC](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847/42 "2023-03-11T12:39:43Z")

</div>

thank you so much this helped a lot. 😃

[Previous page](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847.md?page=1)

[Next page](https://forum.arduino.cc/t/exec-python-executable-file-not-found-in-path/971847.md?page=3)
