当我尝试安装pyobjc-framework-Cocoa时,我看到了这个错误:
In file included from Modules/_Foundation.m:15:
Modules/_Foundation_protocols.m:14:28: error: cannot find protocol declaration for 'NSProgressReporting'
p = PyObjC_IdToPython(@protocol(NSProgressReporting)); Py_XDECREF(p);
^
Modules/_Foundation_protocols.m:15:28: error: cannot find protocol declaration for 'NSURLSessionStreamDelegate'
p = PyObjC_IdToPython(@protocol(NSURLSessionStreamDelegate)); Py_XDECREF(p);
^
2 errors generated.
error: command '/usr/bin/clang' failed with exit status 1
答案 0 :(得分:4)
我能够在以下环境中避免此问题:
Mac OS X 10.10.5
pip8.1.2
python3.4
请尝试以下命令。
pip uninstall pyobjc-core
pip install pyobjc == 3.0.4
问题的原因似乎是" pyobjc-core3.1.1"的交付错误。
如果在3.0.4中统一,它应该顺利。
喝彩!