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

2023-12-11

我使用后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 版本已经过时,这个问题很久以前就在 dev 版本中修复了。请使用以下命令从源安装它

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

这已经在本文中讨论过github问题

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

我想用Python测试设备的蓝牙rssi值,但是在Ubuntu中安装时出现问题 的相关文章

随机推荐