我想对pyBluez使用Win11,所以我运行了“”(我使用Win11 64 to ),但是这个错误发生了:
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.发布于 2022-03-08 09:16:19
我的RHEL也面临着同样的问题。这帮助我克服了错误:
如果setuptools版本超过58,则使用我尝试安装的pip install setuptools==57.0.0
yum install python3-devel (如果您在Ubuntu或其他发行版时使用apt-get )H 213H 114运行此命令安装蓝牙包yum install libbluetooth-dev。(如果您在Ubuntu或其他发行版上,请使用apt-get )
pip install PyOBEX
,您可以安装pip install PyOBEX。
https://stackoverflow.com/questions/71341540
复制相似问题