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

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

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值