为64位Windows 10 PC下载并安装PyBluez? [英] Downloading and installing PyBluez for a 64-bit Windows 10 PC?
问题描述
我正尝试在python中使用蓝牙,而我遇到了一个模块-pybluez.当时,我尝试通过运行pip install pybluez进行安装.该软件包已找到并下载,但是在运行python setup.py egg_info时引发了错误.
I'm trying to use bluetooth with python, and I came across a module - pybluez. Right then, I tried installing it by running pip install pybluez. The package was located and downloaded, but it raised an error when running python setup.py egg_info.
然后,我尝试从此链接 https://pypi.python.org/pypi/下载pyBluez. PyBluez 但是,它说我的PC上安装的Python版本不是2.7(我有2.7.10;为此我需要2.7.0吗?)此外,此下载链接适用于32位系统,并且可能是原因是它不能在我的机器上运行.
I then tried to download pyBluez from this link https://pypi.python.org/pypi/PyBluez But, it said that the Python version installed on my PC is not 2.7 ( I have 2.7.10; do I need 2.7.0 for this?) Also, this download link is for a 32-bit system, and that might be the reason it does not run on mine.
所以我问: 1.如何解决此错误?
So I ask: 1. How do I fix this error?
当我尝试使用pip安装pybluez时,输出错误:
Error in the output when I try to install pybluez using pip:
2.是否使用 https://pypi.python.org/pypi/PyBluez需要python 2.7.0和32位系统?如果是这样,有人可以为64位系统提出更好的方法吗? 3.还有其他可以替代的蓝牙模块吗?
2.Does download using https://pypi.python.org/pypi/PyBluez need python 2.7.0, and a 32-bit system? If so, can someone suggest a better way for a 64-bit system? 3.Any other bluetooth module that could work as a substitute?
推荐答案
我已经使用python3.6成功为win10x64构建了pybluez
I have successfully built pybluez for win10x64 with python3.6
- 下载并安装Windows 10构建工具:
- 克隆pybluez存储库 https://github.com/karulis/pybluez
- 使用repo cd到目录
- 运行
python setup.py install
- Download and install windows 10 build tools: https://www.visualstudio.com/pl/thank-you-downloading-visual-studio/?sku=BuildTools&rel=15
- Run 'Developer Command Prompt for VS' as administrator
- Clone pybluez repo https://github.com/karulis/pybluez
- cd to directory with repo
- run
python setup.py install
快乐蓝牙
这篇关于为64位Windows 10 PC下载并安装PyBluez?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!