admin管理员组文章数量:1122847
Pybluez Win10系统安装教程(蓝牙通信模块pybluez,Python完美安装)
1. 第一步,直接添加pybluez库(报错)
pip install pybluez
出错,提示“Could not find the Windows Platform SDK”
2.第二步,下载并安装win10 的SDK文件(报错)
windows10安装文件的下载地址:https://developer.microsoft/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/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/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/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/tjb132/article/details/108704457
4.Python学习笔记之蓝牙模块通讯-Pybluez
https://blog.csdn/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/lovesdan/article/details/44499423
6.Python3安装模块报错Microsoft Visual C++ 14.0 is required的解决方法
https://blog.csdn/dearmorning/article/details/80665104
版权声明:本文标题:Pybluez Win10系统安装教程(蓝牙通信模块pybluez,Python完美安装) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1724686835a930860.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论