0
我想爲Python導入lightblue。我有一個全新的MAC(10.9如此,我相信),我已經安裝的Xcode,和我運行...爲Python安裝LightBlue(BlueTooth)
Python 2.7.6 :: Anaconda 1.8.0 (x86_64)
我下載lightblue-0.4.tar.gz到我的桌面,然後跑
$ python setup.py install
,我不斷收到這樣的信息:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer
directory '/Library/Developer/CommandLineTools' is a command line tools
instance
,當我嘗試導入lightblue在python我收到此錯誤信息:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-7fea8c968f08> in <module>()
----> 1 import lightblue
.
.
.
/Users/home/anaconda/lib/python2.7/site-packages/lightblue/_LightAquaBlue.py in <module>()
30 if not os.path.isdir(_FRAMEWORK_PATH):
31 raise ImportError("Cannot load LightAquaBlue framework, not found at" + \
---> 32 _FRAMEWORK_PATH)
33
34 try:
ImportError: Cannot load LightAquaBlue framework, not found
at/Library/Frameworks/LightAquaBlue.framework
任何想法?
感謝,
約翰
我相信我已經安裝了命令行工具... '$ xcode-select -p /Library/Developer/CommandLineTools' – gobrewers14