1. 报错信息 /usr/bin/ld: cannot find -lboost_python36 collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-g++' failed with exit status 1 ---------------------------------------- ERROR: Failed building wheel for g
1. 报错信息
/usr/bin/ld: cannot find -lboost_python36collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-g++' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for gattlib
其实核心报错就只有:/usr/bin/ld: cannot find -lboost_python36这一句
当然前提你要补全libboost-dev依赖才可以编译安装 python gattlib这个库,这里我就不多说了,重点是安装完libboost-dev依赖后的报错,也就是我上面说的
2. 解决办法
pip3 download gattlibtar zxvf
tar zxvf gattlib-0.20200122.tar.gz
cd gattlib-0.20200122/
vi setup.py
将setup.py其中内容:
选中内容删除
然后:
pip3 install .完成!
作者:Hello_wshuo