在Linux中安装Pybluez

 尕心疼TammyY 发布于 2023-01-29 08:30

我正在尝试在我的Linux Mint 15机器上安装PyBluez-0.18,但在安装过程中收到错误消息.我尝试在线搜索,看看其他人是否遇到过这个问题,但我找不到任何问题.

我列出了我试图执行的命令,以及我收到的错误消息.有人能告诉我我做错了什么,以及我需要做些什么来重新开始

tri108354@prtgc004-Latitude-E6320 ~/Downloads/PyBluez-0.18 $ python setup.py install
running install
running build
running build_py
running build_ext
building 'bluetooth._bluetooth' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/tri108354/anaconda/include/python2.7 -c bluez/btmodule.c -o build/temp.linux-i686-2.7/bluez/btmodule.o
In file included from bluez/btmodule.c:20:0:
bluez/btmodule.h:5:33: fatal error: bluetooth/bluetooth.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

Rahul R Dhob.. 51

您需要安装libbluetooth-dev包来编译代码

sudo apt-get install libbluetooth-dev

那应该安装蓝牙头文件.

1 个回答
  • 您需要安装libbluetooth-dev包来编译代码

    sudo apt-get install libbluetooth-dev
    

    那应该安装蓝牙头文件.

    2023-01-29 08:36 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有