2014-09-06 3 views
-1

matplotlib을 설치하는 동안 문제가 발생했습니다. 나는 매버릭스를 사용하고 있는데 약 사용되지 않는 NumPy와 API를 모두 pip를 통해 설치 및 소스에서 설치 (여기 https://github.com/matplotlib/matplotlib/blob/master/README.osx의 지침에 따라) 불평 : 그것은 설치를 완료하지 않고 존재하는 한Maplicks에 Matplotlib 설치

In file included from src/_macosx.m:1: 
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12: 
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:10: 
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h:5: 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:76:1: error: 
    duplicate interface definition for class 'NSObject' 
@interface NSObject <NSObject> { 
^ 
/usr/include/objc/NSObject.h:50:12: note: previous definition is here 
@interface NSObject <NSObject> { 
    ^
In file included from src/_macosx.m:5: 
In file included from /Users/se7entyse7en/Envs/datascience/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4: 
In file included from /Users/se7entyse7en/Envs/datascience/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17: 
In file included from /Users/se7entyse7en/Envs/datascience/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1761: 
/Users/se7entyse7en/Envs/datascience/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: 
    "Using deprecated NumPy API, disable it by "   "#defining NPY_NO_DEPRECATED_API 
    NPY_1_7_API_VERSION" [-W#warnings] 
#warning "Using deprecated NumPy API, disable it by " \ 
^ 
1 warning and 1 error generated. 
error: command 'clang' failed with exit status 1 

합니다. 난 이미 libpngbrew를 사용하여 freetype 모두를 설치, 나는 이미 pip를 통해 모두 NumPySciPy를 설치 한 :

numpy==1.8.2 
scipy==0.14.0 
+0

경고 만 게시 했으므로 그 특정 경고에 대해 걱정하지 않아도됩니다. – gg349

+0

오류를 게시 해주세요. 질문을 편집했습니다. – se7entyse7en

+0

google은 친구입니다. 당신이 [이] (http://stackoverflow.com/questions/19245741/xcode-5-upgrade-now-nsobject-h-has-errors-duplicate-interface-definition-for-c)을 시도 했습니까? – gg349

답변

0

좋아, 나는 또한 flebool 감사는 문제를 해결했다. 폴더

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs 

에서 나는 모두 MacOSX10.9.sdkMacOSX10.8.sdk했다 그들은 모두 존재해야하는지 몰랐어요. 아마 MacOSX10.8.sdk이 문제 일 수 있다고 생각했기 때문에 Mavericks가있었습니다. 삭제하고 성공적으로 소스에서 matplotlib을 설치했습니다.