Python PyObjC_IdToPython(@protocol(NSURLSessionStreamDelegate))错误
当我尝试安装pyobjc framework时,我看到以下错误:Python PyObjC_IdToPython(@protocol(NSURLSessionStreamDelegate))错误,python,protocols,pyobjc,Python,Protocols,Pyobjc,当我尝试安装pyobjc framework时,我看到以下错误: 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)
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
我能够在以下环境中避免该问题:
Mac OS X 10.10.5
pip8.1.2
python3.4
请尝试以下命令
pip卸载pyobjc核心pip安装pyobjc==3.0.4 问题的原因似乎是“pyobjc-core3.1.1”的交付错误。
如果在3.0.4中统一,它应该运行良好
干杯 确保“pyobjc==3.0.4”中没有空格