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?

Community
  • 1
  • 1
danielle47
  • 51
  • 1
  • 6
  • Are you sure they have released with Python 3 support? Your link just points to the VCS repository. – tshepang Jul 28 '12 at 00: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. – danielle47 Jul 30 '12 at 05:31
  • But a branch isn't a release. A release is whatever the producers, upstream or downstream, call a release. – tshepang Jul 30 '12 at 08:05

1 Answers1

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
bluish
  • 26,356
  • 27
  • 122
  • 180
danielle47
  • 51
  • 1
  • 6