蓝牙Python 2.7版? [英] Bluetooth for Python 2.7?

查看:393
本文介绍了蓝牙Python 2.7版?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是为Python 2.7蓝牙做编程的最佳方式?

What is the best way to do bluetooth programming for Python 2.7?

我尝试使用 pybluez ,但下载出现上去仅Python 2.6中。我也尝试下载压缩包的来源和运行蟒蛇setup.py构建,但它有一个错误信息,说明失败无法找到Windows XP平台SDK (我运行Windows 8)

I tried using pybluez, but the downloads appear to go up to only Python 2.6. I also tried downloading the tarball with the source and running python setup.py build, but it failed with an error message stating Can't find the Windows XP Platform SDK (I'm running Windows 8)

我也看了一下 lightblue ,但同时支持Linux和Mac电脑,它不支持Windows。该网站还指出它不再保留。

I also looked at lightblue, but while it supports Linux and Macs, it doesn't support Windows. The website also states it's no longer maintained.

3.3的Python及以上的明显支持蓝牙使用插座模块(通过这个,以便回答),但我使用2.7。

Python 3.3 and above apparently supports bluetooth using the socket module (via this SO answer), but I'm using 2.7.

我发现现有的解决方案都不似乎为我工作。有没有办法,我可以尝试支持Python 2.7,或者是有一些方法可以让我使用上述任何尽管问题的一些其他图书馆上市?

None of the existing solutions I found appear to work for me. Is there some other library that I can try that supports Python 2.7, or is there some way I can use any of the above despite the problems listed?

推荐答案

尝试另一种二进制文件的<一个href=\"http://www.lfd.uci.edu/~gohlke/pythonlibs/#pybluez\">www.lfd.uci.edu/~gohlke/pythonlibs/#pybluez

Try the alternative binaries at www.lfd.uci.edu/~gohlke/pythonlibs/#pybluez

这篇关于蓝牙Python 2.7版?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆