[英]I want to use Python to test the device's Bluetooth rssi value, but there is a problem when installing it in 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 issue中讨论过了
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.