Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Downloading and installing PyBluez for a 64-bit Windows 10 PC?

Tags:

bluetooth

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.

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.

So I ask: 1. How do I fix this error?

Error in the output when I try to install pybluez using pip: Error in the output when I try to install pybluez using pip

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?

like image 427
Vaishanavi Mirapurkar Avatar asked Nov 30 '22 14:11

Vaishanavi Mirapurkar


1 Answers

I have successfully built pybluez for win10x64 with python3.6

  • 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

Happy bluetoothing

like image 54
Tomasz Avatar answered Dec 16 '22 16:12

Tomasz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!