Pybluez Win10系统安装教程(蓝牙通信模块pybluez,Python完美安装)

1. 第一步,直接添加pybluez库(报错)

pip install pybluez

出错,提示“Could not find the Windows Platform SDK”

 

2.第二步,下载并安装win10 的SDK文件(报错)

windows10安装文件的下载地址:https://developer.microsoft.com/zh-cn/windows/downloads/windows-10-sdk

 

pip install pybluez

安装模块时出现报错 Microsoft Visual C++ 14.0 is required,也下载安装了运行库依然还是这个错误

 

3.第三步,下载pybluez模块,对应python版本,直接运行即可

3.1.打开Unofficial Windows Binaries for Python Extension Packages(http://www.lfd.uci.edu/~gohlke/pythonlibs/),这里面有很多封装好的Python模块的运行环境

3.2.找到所需要下载的模块文件对应版本进行下载。

  • PyBluez‑0.22‑cp35‑none‑win_amd64.whl
  • 对应python3.5

 

3.3按照与模块对应的python版本

官网

https://www.python.org/downloads/

3.4下载完后,把文件复制到Python的安装目录中的Scripts文件夹下

3.5.打开cmd(命令提示符),跳转到该目录下,如运行pip install pymssql‑2.1.4.dev5‑cp36‑cp36m‑win32.whl(若是其他的模块安装相应的文件名),安装成功有successfully installed的提示

import bluetooth未报错,即pybluez包按照成功

注解:

有的教程说需要修改文件内容,我这个教程不需要windows10需要手动修改Microsoft SDKs下文件夹v10.0A为v7.0A

 

参考资料:

1.Python之蓝牙通信模块pybluez学习笔记

https://blog.csdn.net/zym326975/article/details/93897096?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522160739714916780277855498%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=160739714916780277855498&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-4-93897096.first_rank_v2_pc_rank_v29&utm_term=python%20%E8%93%9D%E7%89%99&spm=1018.2118.3001.4449

2.windows -python3.7-pybluez蓝牙通信记录

https://blog.csdn.net/tjb132/article/details/109687068?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522160740955019724839551584%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=160740955019724839551584&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_v2~rank_v29-6-109687068.first_rank_v2_pc_rank_v29&utm_term=pybluez%20win10&spm=1018.2118.3001.4449

3.解释:无法定位程序输入点xxxx于动态链接库xxxx.dll上

https://blog.csdn.net/tjb132/article/details/108704457

4.Python学习笔记之蓝牙模块通讯-Pybluez

https://blog.csdn.net/weixin_50396804/article/details/109823229?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522160740955019724839551584%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=160740955019724839551584&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_v2~rank_v29-5-109823229.first_rank_v2_pc_rank_v29&utm_term=pybluez%20win10&spm=1018.2118.3001.4449

5.Windows 中python的Pybluez模块安装

https://blog.csdn.net/lovesdan/article/details/44499423

6.Python3安装模块报错Microsoft Visual C++ 14.0 is required的解决方法

https://blog.csdn.net/dearmorning/article/details/80665104

 

Logo

开放原子开发者工作坊旨在鼓励更多人参与开源活动,与志同道合的开发者们相互交流开发经验、分享开发心得、获取前沿技术趋势。工作坊有多种形式的开发者活动,如meetup、训练营等,主打技术交流,干货满满,真诚地邀请各位开发者共同参与!

更多推荐