ImportError:No module named Adafruit_BBIO.GPIO

Adafruit_BBIO是一个Python库,用于在运行Debian的BeagleBone上进行GPIO、PWM、ADC等硬件访问。推荐使用官方BeagleBoard.org的Debian 10.3“Buster”IoT镜像(内核4.19.x-ti)。该库支持Linux内核3.8到4.19,并建议使用Python 3。安装可以通过简单的apt-get命令或手动从GitHub克隆并安装。要升级到最新版本,可以使用pip3。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Adafruit BBIO is an API to enable GPIO, PWM, ADC, UART, SPI and eQEP (Quadrature Encoder) hardware access from Python applications running on the Beaglebone.

It is recommended to use an official BeagleBoard.org Debian image

Currently recommended image: Debian 10.3 “Buster” IoT (2020-04-06) (default kernel is 4.19.x-ti)
Adafruit_BBIO supports Linux kernels 3.8 through 4.19

New versions of Adafruit_BBIO may break backwards compatibility. Please read the changelog.

It is recommended to use Python 3

Installation on Debian
Note: Follow the instructions on BeagleBoard.org to get connected to the Internet

Easiest:

sudo apt-get update
sudo apt-get install build-essential python3-dev python3-pip -y
sudo pip3 install Adafruit_BBIO

Manual:

sudo apt-get update
sudo apt-get install build-essential python3-dev python3-pip -y
git clone git://github.com/adafruit/adafruit-beaglebone-io-python.git
cd adafruit-beaglebone-io-python
sudo python3 setup.py install

Upgrade Adafruit_BBIO to latest version on PyPI:

sudo pip3 install --upgrade Adafruit_BBIO
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值