简体   繁体   English

安装pybluez失败

[英]Failure installing pybluez

I want to install pybluez with python 3.8 but get this error:我想用 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\

I tried to download it from the PyPI - the Python Package Index , but the latest version is for Python 3.5 (I am using Python 3.8)我试图从PyPI - Python Package Index下载它,但最新版本适用于 Python 3.5(我使用的是 Python 3.8)

As far as I know, there is still no fix for pybluez on Windows.据我所知,Windows 上的 pybluez 仍然没有修复。

Personally, I use pybluez2 and it function the exact same as pybluez.就个人而言,我使用 pybluez2,它的功能与 pybluez 完全相同。

To install pybluez 2:安装 pybluez 2:

pip install pybluez2 pip 安装 pybluez2

Starter/Test Code:入门/测试代码:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM