安装python
$sudo apt-get install python-dev
添加国内pypi镜像
在~/.pip/pip.conf中添加
[global]index-url = http://mirrors.aliyun.com/pypi/simple/
更新
$sudo easy_install -U distribute
安装python-pip
$sudo apt-get install python-pip
安装python的GPIO库
$sudo pip install rpi.gpio
原文地址:树莓派安装Python开发环境与GPIO库, 感谢原作者分享。 送给中意的TA,背面写上:某年某月某日,