Jetson Nano(Ubuntu 18.04)安装adafruit-blinka报错求助
解决Ubuntu 18.04 Jetson Nano上adafruit-blinka安装报错问题
报错module 'adafruit_platformdetect.constants.chips' has no attribute 'JH71x0'是因为新版本adafruit-platformdetect库引入了仅在较新系统支持的芯片定义,而Ubuntu 18.04默认的Python 3.6环境无法兼容这些新特性。以下是修复步骤:
卸载现有冲突的库:
pip3 uninstall adafruit-platformdetect adafruit-blinka -y更新pip至兼容Python 3.6的版本:
pip3 install --upgrade pip==21.3.1注:pip 22及以上版本不再支持Python 3.6,需指定旧版本
安装适配旧系统的
adafruit-platformdetect版本:pip3 install adafruit-platformdetect==3.19.0安装匹配版本的
adafruit-blinka:pip3 install adafruit-blinka==6.20.0
完成上述操作后,即可正常导入busio和board库控制PCA9685 PWM驱动器。
内容的提问来源于stack exchange,提问作者ferre Vandepoel
相关产品推荐
相关产品推荐

