在 raspberrypi 0 2w 上安装 adafruit-blinka 时出现问题
背景
我正在尝试在Raspberry Pi Zero2W上安装一些所需的依赖项,并与Adafruit BNO055库陷入问题,特别是其依赖关系Adafruit-Blinka。由于项目的性质,PI只能连接到本地非互联网网络。因此,我已经通过pip预先下载所有库和依赖项,例如.tar.gz
文件,以及所有setuptools
and code> and wheel
.whl
文件。然后,我将它们安装在离线设备上。
问题
我遇到了一个问题,在Import Board
之后找不到模块板,这是需要创建I2C连接的必需库在python
我尝试过的
一些常见解决方案似乎正在运行命令
sudo python3 pip install-force-reinstall adafruit-bliit-blinka
其他一些帖子后,我已经尝试过的 使用源文件我已经尝试了
sudo python3 -m pip install-force-redinstall adafruit-blinka -no-index -no-index -find-links lib/
pip3 pip3 install -force-reinstall adafruit-blinka -no-index - find-links lib/
以及直接使用软件包名称adafruit-blinka-7.2.0.tar.gz.gz
这些命令这些命令混合了结果,大部分时间在运行命令python setup.py egg_info
然后使用python setup.py egg_info失败的错误代码1
并且有一次成功地重新安装了该软件包时,它仍然无法进口板
Background
I am trying to install some needed dependencies on a raspberry pi zero2w and am running into an issue with the adafruit bno055 library, specifically its dependency adafruit-blinka. Due to the nature of the project the pi can only connect to local non-internet network. For this reason I have pre-downloaded all the libraries and dependencies through pip as .tar.gz
files, as well all the setuptools
and wheel
.whl
files. I then install them on the offline device.
Issue
I am running into the problem where I get module board not found
after import board
which is a required library in order to create an I2C connection in python
What I have tried
After looking at some other posts a common solution seems to be running the command
sudo python3 pip install --force-reinstall adafruit-blinka
for my case using source files I have tried both
sudo python3 -m pip install --force-reinstall adafruit-blinka --no-index --find-links lib/
pip3 install --force-reinstall adafruit-blinka --no-index --find-links lib/
as well as using the package name directly Adafruit-Blinka-7.2.0.tar.gz
these commands have mixed results, the majority of the time the command stalls for a long period of time on Running command python setup.py egg_info
then errors with python setup.py egg_info failed with error code 1
and the one time it successfully reinstalled the package it still failed to import board
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论