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
합니다. 난 이미 libpng
및 brew
를 사용하여 freetype
모두를 설치, 나는 이미 pip
를 통해 모두 NumPy
및 SciPy
를 설치 한 :
numpy==1.8.2
scipy==0.14.0
경고 만 게시 했으므로 그 특정 경고에 대해 걱정하지 않아도됩니다. – gg349
오류를 게시 해주세요. 질문을 편집했습니다. – se7entyse7en
google은 친구입니다. 당신이 [이] (http://stackoverflow.com/questions/19245741/xcode-5-upgrade-now-nsobject-h-has-errors-duplicate-interface-definition-for-c)을 시도 했습니까? – gg349