我在安装 PyObjC 时遇到了很多麻烦。我已经尝试过 pip、easy_install 和手动安装,但它们都给了我错误。我现在正在尝试使用 easy_install,因为它是 PyObjC 网站上推荐的。
要运行,我使用以下命令:
sudo env CC=clang easy_install -U pyobjc-core
我收到以下警告:
warning: no directories found matching 'Scripts'
warning: no directories found matching 'setup-lib'
warning: no directories found matching 'source-deps'
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
clang: warning: argument unused during compilation: '-mno-fused-madd'
以及更多类似这样的错误:
/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLNode.h:180:53: error: expected function body after function declarator
CFXMLNodeRef CFXMLTreeGetNode(CFXMLTreeRef xmlTree) CF_DEPRECATED(10_0, 10_8, 2_0, 6_0);
谁能帮我安装这个?