2

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

I was following the instructions here for installing matplotlib. I tried installing numpy according to 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

Any ideas for how to fix the curl error?

3
  • Are you sure they have released with Python 3 support? Your link just points to the VCS repository. Commented Jul 28, 2012 at 0:47
  • Matplotlib for python3 was originally a separate branch, but it has since been reintegrated into the main branch. This happened within the past few months. Commented Jul 30, 2012 at 5:31
  • But a branch isn't a release. A release is whatever the producers, upstream or downstream, call a release. Commented Jul 30, 2012 at 8:05

1 Answer 1

2

From this post, I found instructions to update curl.

But I was concerned about downloading a Mac-safe version, so I went to this page, scrolled down to the Mac section and chose one on the Apple website.

In the end I decided to install this version as an additional curl (ie, not replace the system curl), so here are the modified instructions:

  1. Download curl sources (link #2)
  2. Unarchive the zip file somewhere
  3. Open a Terminal window and go to the directory containing curl sources
  4. Type: $CFLAGS=-m64 ./configure --prefix=pathname
  5. Type: $make
  6. Type: $sudo make install

To run it, cd into the pathname/bin/ directory, and run:

$ ./curl URL_OF_DOWNLOAD | python3
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.