Matplotlib has recently released a python 3 compatible version. To install matplotlib, you need numpy.

I tried installing numpy according the the instructions for Mac OS Lion 10.7 here (in the hope it might be similar enough), but Terminal got stuck at the first command:

$curl http://python-distribute.org/distribute_setup.py | python3

dyld: Library not loaded: @rpath/libcurl.4.dylib
  Referenced from: /Library/Frameworks/Python.framework/Versions/Current/bin/curl
  Reason: Incompatible library version: curl requires version 7.0.0 or later, but libcurl.4.dylib provides version 6.0.0

same for the second one (as expected):

$ curl https://raw.github.com/pypa/pip/master/contrib/get-pip.py | python3

dyld: Library not loaded: @rpath/libcurl.4.dylib
  Referenced from: /Library/Frameworks/Python.framework/Versions/Current/bin/curl
  Reason: Incompatible library version: curl requires version 7.0.0 or later, but libcurl.4.dylib provides version 6.0.0

More background info: Numpy is necessary for the installation of matplotlib. Following the instructions here for installing matplotlib, after running

python3 setup.py build

The output looked like this:

basedirlist is: ['/usr/local/', '/usr', '/usr/X11']
============================================================================
BUILDING MATPLOTLIB
        matplotlib: 1.2.x
            python: 3.2.3 (v3.2.3:3d0686d90f55, Apr 10 2012, 11:25:50)
                    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
          platform: darwin

REQUIRED DEPENDENCIES
             numpy: no
                    * You must install numpy 1.4 or later to build
                    * matplotlib.

...which is expected because numpy is only installed in the native Mac version of python (2.7) and not in the python 3 version.

Any ideas for how to fix the curl error?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.