I am able to import matplotlib.pyplt under python 3.3.2 from www.python.org in
OS X 10.6.8. matplotlib 1.2.1, libfreetype and libpng were built from source
using gcc 4.2.1 from Xcode 3.2.6.
Are you using python from macports or from www.python.org? You might try using
python from the
Also tried building from source with python2.7 - same problem:
I deleted the old build/source directory, re-extracted the source from the
tar file and tried...
[lap3:~/matplotlib-1.2.1] pflm% sudo python2.7 setup.py install
Build runs ok except for some warnings like ...
warning: #warning
Trying to install matplotlib-1.2.1 from source, i.e.,
[macpflm:~/matplotlib-1.2.1] pflm% python3 setup.py install
Everything seems to run ok, but I cannot import macplotlib:
[macpflm:~] pflm% python3
Python 3.3.1 (v3.3.1:d9893d13c628, Apr 6 2013, 11:07:11)
[GCC 4.2.1 (Apple Inc. build 5666)