【发布时间】:2022-01-29 09:15:18
【问题描述】:
我正在关注How to use the Raspberry Pi GPIO headers with ubuntu 上的教程,其中一个步骤是使用安装 python3-lgpio
sudo apt install python3-lgpio
我得到E: Unable to locate package python3-lgpio 作为结果。
我尝试手动定位软件包 from here 并使用 sudo dpkg -i python3-lgpio 手动安装它,我得到了
dpkg: dependency problems prevent configuration of python3-lgpio:
python3-lgpio depends on python3 (>= 3.9~); however:
Version of python3 on system is 3.8.2-0ubuntu2.
但是,python -V 输出 Python 3.9.10,因为我之前在 Pi 上更新了 python。
【问题讨论】:
标签: ubuntu raspberry-pi python-3.9 dpkg