PyBluez: error in PyBluez setup command: use_2to3 is invalid

huangapple go评论134阅读模式
英文:

PyBluez: error in PyBluez setup command: use_2to3 is invalid

问题

我正在尝试安装`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.


我该如何解决这个问题?

编辑:
事实证明它没有为Windows更新,所以我切换到了一个Linux虚拟机。
英文:

I am trying to pip install pybluez and I get this error:

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.

How do I solve this?

Edit:
Turns out its not being updated for windows so I just switched to a linux vb

答案1

得分: 4

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

的确,

pypi 版本已过时,此问题在开发版本中早已解决。

来源:dogtopus 在 pybluez 仓库的 GitHub 问题评论中提供了此答案。

英文:

As Mike 'Pomax' Kamermans suggested, you can solve this by installing the package from source:

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

Indeed,

> The pypi version is outdated and this issue is fixed in the dev
> version ages ago.
>
> Source: This answer was provided by dogtopus on a GitHub issue of the pybluez repository.

huangapple
  • 本文由 发表于 2023年3月23日 09:04:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/75818465.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定