pybluez installation errors on Mac OS

前端 未结 2 1750
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-20 14:48

I tried to install pybluez using following commands.

pip install pybluez

sudo easy_install pybluez

But for both commands I en

2条回答
  •  无人共我
    2021-02-20 15:28

    PyBluez is only for PC. Try lightblue

    Download and install the master distribution: https://github.com/postskolkovo/lightblue-0.4

    cd ~/Downloads/lightblue-0.4-master
    sudo python setup.py install
    

    If you get the error:

    Check dependencies
    No architectures to compile for (ARCHS=$(NATIVE_ARCH_ACTUAL), VALID_ARCHS=i386 x86_64).
    
    ** INSTALL FAILED **
    

    you'll have to open up setup.py and change:

    os.system("xcodebuild install -arch '$(NATIVE_ARCH_ACTUAL)' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
    

    to:

    os.system("xcodebuild install -arch 'i386' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
    

    via this discussion

提交回复
热议问题