[英]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.