我想使用 Python 来测试设备的蓝牙 rssi 值,但在 Ubuntu 中安装时出现问题



在我使用sudo apt-get install bluetooth libbluetooth-dev(libbluetooth-dev和bluetooth是最新版本(后,我键入sudo python3 -m pip install pybluez,但它显示:

Collecting pybluez
Using cached PyBluez-0.23.tar.gz (97 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in PyBluez setup command: use_2to3 is invalid.
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

请问谁能帮我解决这个

pypi版本已经过时,这个问题在很久以前的开发版本中得到了修复。请使用以下命令从源安装

pip install git+https://github.com/pybluez/pybluez.git#egg=pybluez

这已经在这个github问题中讨论过了

相关内容

最新更新