简体   繁体   中英

"python": executable file not found in $PATH on M1

I have tried to connect my esp32 on my M1 MacBook through the Arduino IDE and I'm getting the following error.

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

Does anyone have any idea how to fix it? If I run python3 --version in the terminal I get the version which is Python 3.8.9. screenshot

Many thanks in advance (:

Open the App via Terminal works:

open /Applications/Arduino.app

compiles without errors

If the IDE is a GUI application started from the Finder, and your Python binary is in some location that is added to PATH by the shell start-up files (such as.bashrc or.zshrc), then the issue may be that those files don't take effect for programs started through the Finder (since no shell is involved).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM