ImportError:No module named Adafruit

ImportError:No module named Adafruit,第1张

ImportError:No module named Adafruit

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

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4827788.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-10
下一篇 2022-11-10

发表评论

登录后才能评论

评论列表(0条)

保存