簡體   English   中英

使用pip,easy_install,manual安裝PyObjc時遇到問題

[英]Trouble installing PyObjc using pip, easy_install, manual

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

任何人都可以幫我安裝這個嗎?

從你得到的錯誤我會說你的編譯器安裝已經破壞。

我試過了

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM