您的位置:首页 > 编程语言 > Python开发

树莓派搭建python i2c开发环境

2013-04-03 00:07 218 查看
## 确保系统为最新的

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: