Python Forum
python 3 BLUETOOTH for WINDOWS
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python 3 BLUETOOTH for WINDOWS
#1
Is there any bluetooth library for python 3 on windows platform.
I tried to install pybluez, but it shows an error. Itried to do it even by running cmd as the admin Cry
this is the error message Wall
Error:
Could not find the Windows Platform SDK
I have been exhausted with this problem. plz help me
Reply
#2
please advise how you tried to install
do you have python installed?
the package should be installed using:
pip install pybluez
but only if python already installed.
Reply
#3
yes. I have installed python and I tride to unstall package by pip
Reply
#4
Sounds like missing path information.
When installing, this unfortunately is an option and has to be checked.
from command line, try:
python -V
pip -V
this will determine if environment is properly set up.
If not, you will have to manually set path or re-install (which is better)
If you choose to re-install, please follow the tutorial here:
Here: https://python-forum.io/Thread-Basic-Par...er-Windows
and here: https://python-forum.io/Thread-Part-2-Py...nt-Windows
Reply
#5
yes I have added python to the path at the installation and the pip also. Ineed to know is there any uncompatiblity in "pybluez" with windows
Reply
#6
can't say. The author of that package shows a homepage of: http://karulis.github.io/pybluez/
however that url returns 404 error
And pypi page: https://pypi.org/project/PyBluez/ states nothing about windows.
This is a question that should be directed to author, but since his github url fails, can't advise on how that should be done.
perhaps try another package?: https://pypi.org/search/?q=bluetooth
Reply
#7
Look at this link.
You see that there is link to wheel for Windows platform.
Install with pip:
pip install PyBluez-0.22-cp37-cp37m-win_amd64.whl
Reply
#8
I did it just as said by snippsat by giving following command.
pip install pybluez-0.22-cp37-cp37m-win_amd64.whl
but it shows the following error
Error:
C:\Windows\system32>pip install pybluez-0.22-cp37-cp37m-win_amd64.whl Requirement 'pybluez-0.22-cp37-cp37m-win_amd64.whl' looks like a filename, but t he file does not exist pybluez-0.22-cp37-cp37m-win_amd64.whl is not a supported wheel on this platform.
And when i try to do it by giving the following command it tries to instal
it by using cached
pip install pybluez
it shows a permission error even when i have launched cmd prompt as admin
Error:
C:\Windows\system32>pip install pybluez Collecting pybluez Using cached https://files.pythonhosted.org/packages/c1/98/3149481d508bee17433 5be6725880f00d297afebe75c15e917af8f6fe169/PyBluez-0.22.zip Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 'C:\\Users\\Kavindu \\AppData\\Local\\Temp\\pip-unpack-ocvo1b_s\\PyBluez-0. 22.zip' Consider using the `--user` option or check the permissions.
and some times this error message instaed of above

Error:
Collecting pybluez Using cached https://files.pythonhosted.org/packages/c1/98/3149481d508bee17433 5be6725880f00d297afebe75c15e917af8f6fe169/PyBluez-0.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\Kavindu\ AppData\Local\Temp\pip-install-v_h2z98o\pybluez\
but I can install other packages like numpy,django,..etc.
this problem occurs only with pybluez
Reply
#9
You most choose wheel for your Python version.
That wheel is for Python 3.7 - 64-bit.
PyBluez-0.22-cp37-cp37m-win_amd64.whl

You find your version bye type python in cmd.
Need to install look at Python 3.6/3.7 and pip installation under Windows.
Anaconda look here.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020