树莓派搭建python i2c开发环境
## 确保系统为最新的
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