首页 > 解决方案 > 尝试在 Linux 上下载 Python 包时出错

问题描述

我想使用覆盆子 bi 上的“黯淡”包连接到蓝牙低功耗外围设备。当我使用命令时,pip install bleak我得到错误:

Could not find a version that satisfies the requirement dbus-next; platform_system == "Linux" (from bleak) (from versions: ) No matching distribution found for dbus-next; platform_system ++ "Linux" (from bleak)

他们的网站上声明他们确实支持 Linux 平台。

我尝试在安装它的 Macbook 上下载该软件包,但没有任何问题。

对于该错误消息的确切含义有什么帮助吗?先感谢您。

标签: pythonlinuxraspberry-pibluetooth-lowenergy

解决方案


也许您使用了错误版本的 pip ,请尝试 pip3 install bleak。如果它不起作用,请使用以下命令的输出编辑您的帖子:

which python
which pip

推荐阅读