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

March 2014 · 1 minute read

安装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
CDN   VPS   ForeverBlog   Autohotkey   openSUSE   李跳跳   7zip   LTE中文网   QGIS中文网   白鹿原   冰与火之歌   LearnSQL   AOSP   RGB色码   UNIXETC   晚清沧海事   古文观止