首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法在mac上安装pybluez

无法在mac上安装pybluez
EN

Stack Overflow用户
提问于 2017-12-01 11:56:37
回答 1查看 2.6K关注 0票数 0

与Mac 10.13.1和Python3.6:

我已经成功地安装了Python,但是当我在sudo pip3 install pybluez结果中输入terminal.app.The时,如下所示:

警告和错误信息。日志: (1) Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-01oswgn6/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ekqpt5n6-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-01oswgn6/pybluez/

(2)Failed building wheel for pybluez (3)The directory '/Users/ringo/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

然后我搜索并重新输入以下命令:sudo -H pip3 install pbluez,和2个错误是:(1)Failed building wheel for pybluez (2)Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-krv0pwmm/pybluez/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-38mly9ts-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-krv0pwmm/pybluez/

我已经在谷歌上搜索过了,没有一种有效的issue.Any方法能让人对此有任何了解。

EN

回答 1

Stack Overflow用户

发布于 2018-01-16 06:10:56

Bluez是“官方的Linux蓝牙协议栈”,也就是说,它不是针对macOS的。

如果您想为macOS目标开发蓝牙应用程序,请检查https://developer.apple.com/bluetooth/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47592881

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档