树莓派安装Python开发环境与GPIO库



安装python

$sudo apt-get install python-dev

更新

$sudo easy_install -U distribute

安装python-pip

$sudo apt-get install python-pip

添加国内pypi镜像

在**~/.pip/pip.conf**中添加

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/

安装python的GPIO库

$sudo pip install rpi.gpio
comments powered by Disqus