Linux中的Pybluez安装

2024-05-28 19:00:14 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在我的LinuxMint15机器上安装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

Tags: installpybuild消息错误errorrunningfile

热门问题