GeekHub

树莓派安装python quick2wire库

准备工作:

sudo apt-get install git
sudo apt-get install python3
sudo apt-get install python-pip
sudo apt-get install python-virtualenv

编译安装quick2wire-gpio-admin:

git clone https://github.com/quick2wire/quick2wire-gpio-admin.git
cd quick2wire-gpio-admin
make
sudo make install

将当前用户pi添加至gpio组:

sudo adduser pi gpio

此时终端中若存在命令gpio-admin则说明quick2wire库安装成功

接下来安装quick2wire的python接口,首先git clone:

git clone https://github.com/quick2wire/quick2wire-python-api.git

进入quick2wire-python-api,使用setup.py安装quick2wire python api:

cd quick2wire-python-api
sudo python3 setup.py install

至此quick2wire的python环境安装完毕。

参考:https://www.cnblogs.com/hangxin1940/archive/2013/04/04/2999015.html

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注