As a requirement to install OCRopus, I have successfully installed matplotlib
on Mac OS X 10.9.1 by pip
:
$ sudo pip install matplotlib
But after installing OCRopus the test didn't work because of laking this module: matplotlib.backends._backend_gdk
. Reading this document and this question convinced me that my problems might gone if I reinstall matplotlib
through:
$ sudo port install py27-matplotlib +gtk2
But on Mac OS X 10.9.1 it seems there is a bug which I receive this error: Error: Dependency 'py27-pyobjc' not found.
:
---> Computing dependencies for py27-matplotlib
Error: Dependency 'py27-pyobjc' not found.
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port py27-matplotlib failed
All I need is to install different variant of matplotlib
. This is what I get from port variants py27-matplotlib
:
$ port variants py27-matplotlib
py27-matplotlib has the variants:
cairo: Enable Cairo backends
dvipng: Enable dvipng support
ghostscript: Enable GhostScript support
gtk2: Enable GTKAgg backend
gtk3: Enable GTK3Agg backend
latex: Enable LaTeX support
pdftops: Enable pdftops support
pyside: Enable PySide backend
qt4: Enable QT4Agg backend
[+]tkinter: Enable tkAgg backend
universal: Build for multiple architectures
webagg: Enable WebAgg backend
Any idea how to get +gtk2
on Mac OS X 10.9.1? or how to make pip to install matplotlib
with this particular settings?
It turns out problem was on my computer. I couldn't figure out the source of the problem. Finally, I tried out the process on a clean installed Mac OS X 10.9.1 with new Xcode command-line tools, and new MacPorts, and upgraded python 2.7.6, then it worked fine.