我在安装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);
有人可以帮我安装吗?
答案 0 :(得分:0)
从你得到的错误中我会说你的编译器安装已经坏了。
答案 1 :(得分:0)
我试过
env CC=clang pip install -U pyobjc-core
env CC=clang pip install -U pyobjc
这对我有用。仍有一些警告。像每个包中的那些:
warning: no directories found matching 'Examples'
warning: no directories found matching 'Modules'
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