通过 pip3 下载 gattlib 时出错 [英] got error while download gattlib via pip3

查看:54
本文介绍了通过 pip3 下载 gattlib 时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 Ubuntu 16.04 64 位操作系统
当我跑

I use Ubuntu 16.04 64bit OS
when I run

$ sudo pip3 install gattlib

我收到此错误消息

/usr/bin/ld: 找不到 -lboost_python-py34
collect2:错误:ld 返回 1 个退出状态
错误:命令x86_64-linux-gnu-g++"失败,退出状态为 1

/usr/bin/ld: cannot find -lboost_python-py34
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-g++' failed with exit status 1

我尝试在谷歌上搜索如何解决这个问题,但对我没有任何作用
我想在python上使用gatttool,所以我需要安装这个
我该如何解决这个问题?

I tried googling how to solve this but nothing works for me
I want to use gatttool at python, so I need to install this
How can I solve this?

附注.我已经下载了 libboost-dev

PS. I already downloaded libboost-dev

推荐答案

pip3 download gattlib
tar xvzf ./gattlib-0.20150805.tar.gz
cd gattlib-0.20150805/
sed -ie 's/boost_python-py34/boost_python-py35/' setup.py
pip3 install .

这篇关于通过 pip3 下载 gattlib 时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆