<p><strong>PyBluez仅限于windows:</p>
<p>“PyBluez可以在GNU/Linux和Windows XP(Microsoft和Widcomm蓝牙堆栈)上工作。”—<a href="https://code.google.com/p/pybluez/">pybluez homepage</a></p>
<p>您似乎安装了错误版本的浅蓝色</strong></p>
<pre><code>Check dependencies
error: There is no SDK with the name or path '/Users/myname/Downloads/lightblue-0.4/src/mac/LightAquaBlue/macosx10.6'
</code></pre>
<p>它正在寻找OSX 10.6的文件。</p>
<p>下载并安装主发行版:<a href="https://github.com/postskolkovo/lightblue-0.4">https://github.com/postskolkovo/lightblue-0.4</a></p>
<p>如果您发现错误:</p>
<pre><code>Check dependencies
No architectures to compile for (ARCHS=$(NATIVE_ARCH_ACTUAL), VALID_ARCHS=i386 x86_64).
** INSTALL FAILED **
</code></pre>
<p>您必须打开setup.py并更改:</p>
<pre><code>os.system("xcodebuild install -arch '$(NATIVE_ARCH_ACTUAL)' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
</code></pre>
<p>致:</p>
<pre><code>os.system("xcodebuild install -arch 'i386' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
</code></pre>
<p>通过<a href="https://github.com/postskolkovo/lightblue-0.4/issues/7">this discussion</a></p>
<p><strong>编辑</strong><br/>
当我试图导入时,我实际上得到了一个关于Mavericks的<code>ImportError: Bundle could not be loaded</code>
这似乎是64位计算机的修复方法:</p>
<pre><code>os.system("xcodebuild install -arch 'x86_64' -target LightAquaBlue -configuration Release DSTROOT=/ INSTALL_PATH=/Library/Frameworks DEPLOYMENT_LOCATION=YES")
</code></pre>
<p>如果你遇到同样的事情可能是必要的。</p>