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

安装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库

相关文章:

你感兴趣的文章:

标签云: