Skip to content

Instantly share code, notes, and snippets.

@fxprime
Last active April 17, 2022 08:55
Show Gist options
  • Save fxprime/ef097889cf63d99adc9392e0e0b647f7 to your computer and use it in GitHub Desktop.
Save fxprime/ef097889cf63d99adc9392e0e0b647f7 to your computer and use it in GitHub Desktop.
หา PYTHON ไม่เจอใน mac m1

ติดตั้ง Arduino ใน Mac M1

1. โหลด Arduino App

2. ติดตั้ง Python ผ่าน Anaconda ตามวิดิโอข้างล่าง

วิดิโอ

https://www.youtube.com/watch?v=2VECcPofhP8 (แค่ติดตั้ง anaconda ก็พอ)

ตรวจสอบ Python PATH

Python 2:

python -c "import sys; print sys.executable" Python 3: python -c "import sys; print(sys.executable)"

3. แก้ไข PATH python ของ Arduino ให้ลิ้งไปที่ python3 เนื่องจากเวอร์ 2 Outdated แล้ว

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment