4

lightblue为python导入模块后,我不断收到此错误:

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    import lightblue
  File "/Library/Python/2.7/site-packages/lightblue/__init__.py", line 160, in <module>
    from _lightblue import *
  File "/Library/Python/2.7/site-packages/lightblue/_lightblue.py", line 23, in <module>
    import Foundation
ImportError: No module named Foundation

我有一个 macbook pro 10.8

4

1 回答 1

0

在ImportError中查看这个问题:没有名为 Foundation 的模块

重新安装pyobjc似乎也可以解决它

pip uninstall pyobjc
pip install pyobjc
于 2014-03-15T16:58:11.037 回答