蘋果電腦安裝了Arduino,布置ESP8266開發環境,編譯程序過程中出現錯誤:
env: python3:
No such file or directory
exit status 127
為開發板 ESPectro Core 編譯出錯
原因:python2在2020年1月1日停止更新。要使用python3,而Arduino沒有找到python3。
解決辦法:安裝python3,
1、python下載官網 https://www.python.org/downloads/mac-osx/ 下載3.0以后的版本
2、安裝python之后,執行下面命令:
$ cd / Users / [您的用戶名] /Library/Arduino15/packages/esp8266/tools/python3/3.7.2-post1/
$ rm python3
$ which python3
$ ln -s [以上返回的路徑命令] python3