[英]Failure installing pybluez
我想用 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 - Python Package Index下載它,但最新版本適用於 Python 3.5(我使用的是 Python 3.8)
據我所知,Windows 上的 pybluez 仍然沒有修復。
就個人而言,我使用 pybluez2,它的功能與 pybluez 完全相同。
安裝 pybluez 2:
pip 安裝 pybluez2
入門/測試代碼:
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.