3

我在安装 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);

谁能帮我安装这个?

4

2 回答 2

0

根据您收到的错误,我会说您的编译器安装已损坏。

于 2013-06-11T13:24:18.410 回答
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
于 2014-04-15T18:24:50.330 回答