最近想在ubuntu上使用一下蓝牙适配器写个小程序用用,
在使用命令安装pybluez包的时候
pip3 install PyBluez
报以下错误
➜ ~ pip3 install PyBluez
Collecting PyBluez
Using cached PyBluez-0.23.tar.gz (97 kB)
Building wheels for collected packages: PyBluez
Building wheel for PyBluez (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/jason/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-4hs6_v2b/pybluez_5d9642d3470e4a34b6d96d329e16c26f/setup.py'"'"'; __file__='"'"'/tmp/pip-install-4hs6_v2b/pybluez_5d9642d3470e4a34b6d96d329e16c26f/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-ukauncjg
cwd: /tmp/pip-install-4hs6_v2b/pybluez_5d9642d3470e4a34b6d96d329e16c26f/
Complete output (34 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/bluetooth
copying bluetooth/__init__.py -> build/lib.linux-x86_64-3.7/bluetooth
copying bluetooth/macos.py -> build/lib.linux-x86_64-3.7/bluetooth
copying bluetooth/btcommon.py -> build/lib.linux-x86_64-3.7/bluetooth
copying bluetooth/bluez.py -> build/lib.linux-x86_64-3.7/bluetooth
copying bluetooth/widcomm.py -> build/lib.linux-x86_64-3.7/bluetooth
copy