1、import bluetooth 报错:no module named bluetooth原因及解决方法:You've installed the Python 2 version of the bluez bindings. Either run the script using python2 or install the Python 3 bindings. Since they aren't packaged, you would need to install them using pip:
python3 -m pip install pybluez2、no module named gattlib解决方法:sudo apt-get install libboost-python-dev libboost-thread-dev libbluetooth-dev libglib2.0-dev
版权声明:本文为zyqjfzy原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。