## 確保系統為最新的 sudo apt-get update sudo apt-get upgrade ## 安裝python工具 sudo apt-get install python sudo apt-get install python-dev sudo apt-get install libjpeg-dev sudo apt-get install libfreetype6-dev sudo apt-get install python-setuptools sudo apt-get install python-pip sudo apt-get install easy_install 如果提示找不到某個包就apt查找一下,替換為正確的名字 sudo apt-cache search 關鍵字 ## 更新Python的庫 sudo easy_install -U distribute ## 安裝Python GPIO庫 sudo pip install RPi.GPIO sudo pip install pySerial sudo pip install nose sudo pip install cmd2