安装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
---------------------------我的天空里没有太阳,总是黑夜,但并不暗,因为有东西代替了太阳。虽然没有太阳那么明亮,但对我来说已经足够。凭借着这份光,我便能把黑夜当成白天。我从来就没有太阳,所以不怕失去。
--------《白夜行》