Install Matplotlib on Mavericks

I have a problem installing matplotlib. I use Mavericks and it complains about the outdated NumPy API, which is installed through pipand installed from the source (following the instructions here https://github.com/matplotlib/matplotlib/blob/master/README.osx ):

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

After that, it exists without completing the installation. I have already installed libpngand freetypewith brew, and I have already installed both NumPy, and SciPythrough pip:

numpy==1.8.2
scipy==0.14.0
-1
source share
1 answer

Well, I solved the problem also thanks to the flibble. In folder

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

MacOSX10.9.sdk, MacOSX10.8.sdk, , . Mavericks, , MacOSX10.8.sdk. , matplotlib .

0

All Articles