【问题标题】:Failure installing pybluez安装 pybluez 失败
【发布时间】:2018-04-24 20:33:35
【问题描述】:

我想用 python 3.8 安装 pybluez 但得到这个错误:

C:\wndows\system32>pip install pybluez
Collecting pybluez
  Using cached PyBluez-O.22.zip
    Complete output from command python setup.py egg_info:
    Could not find the Windows Platform SDK

    -----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Rostan\AppData\Local\Temp\pip-build-nx_jjne7\pybluez\

我尝试从PyPI - the Python Package Index下载它,但最新版本是Python 3.5(我使用的是Python 3.8)

【问题讨论】:

标签: python python-3.x pybluez


【解决方案1】:

据我所知,Windows 上的 pybluez 仍然没有修复。

就我个人而言,我使用 pybluez2,它的功能与 pybluez 完全相同。

安装 pybluez 2:

点安装 pybluez2

启动器/测试代码:

import bluetooth as bt
devices = bt.discover_devices(lookup_names=True)
print("Devices found: %s" % len(devices))

【讨论】:

    猜你喜欢
    • 2014-03-03
    • 2019-03-14
    • 2020-07-23
    • 1970-01-01
    • 1970-01-01
    • 2013-02-24
    • 1970-01-01
    • 2017-08-14
    • 2021-05-06
    相关资源
    最近更新 更多