安装bluepy

安装失败了反正是失败了
就是运行example目录下的ble目录中的scan.py
失败了然后就在我的树莓派板子上运行了
https://raspberrypi.stackexchange.com/questions/55530/pybluez-and-gattlib-error/57520
参考的知识点

sudo apt-get install mercurial
the clone the source of gattlib

hg clone https://bitbucket.org/OscarAcena/pygattlib
cd pygattlib
cat DEPENDS
you need to install all those dependencies, the reason you getting that error is because you didn't install libboost-thread-dev.

sudo apt-get install libboost-thread-dev
now install gattlib like any other python module.

sudo python setup.py install
That should fix it. Thats how I install it on the RPi 3

这个网站也可以参考一下。
https://bitbucket.org/OscarAcena/pygattlib
https://bitbucket.org/OscarAcena/pygattlib/src/45e04060881a20189412681f52d55ff5add9f388/DEPENDS?at=default&fileviewer=file-view-default

posted on 2017-11-05 20:56  HDU李少帅  阅读(1478)  评论(0编辑  收藏  举报