首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在子进度上用pybuez错误修复安装错误

如何在子进度上用pybuez错误修复安装错误
EN

Stack Overflow用户
提问于 2022-03-03 17:45:49
回答 1查看 2.1K关注 0票数 1

我想对pyBluez使用Win11,所以我运行了“”(我使用Win11 64 to ),但是这个错误发生了:

代码语言:javascript
复制
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.
EN

回答 1

Stack Overflow用户

发布于 2022-03-08 09:16:19

我的RHEL也面临着同样的问题。这帮助我克服了错误:

如果setuptools版本超过58,则使用我尝试安装的pip install setuptools==57.0.0

  • After命令使其小于58,这再次导致与Python.h有关的错误。

  • 运行命令安装python所需的库,如:yum install python3-devel (如果您在Ubuntu或其他发行版时使用apt-get )H 213H 114运行此命令安装蓝牙包yum install libbluetooth-dev。(如果您在Ubuntu或其他发行版上,请使用apt-get )

  • ,如果步骤6出现了一些错误,请运行此错误,而不是运行pip install PyOBEX

,您可以安装pip install PyOBEX

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71341540

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档