[GIS] Problem with matplotlib when installing QGIS on mac

installationmacmatplotlibqgis

I have matplotlib installed on a Mac (Mavericks) via pip, which means the matplotlib files get installed under /System/Library/…

I tried installing the most recent version of QGIS, and the install fails because it can't find matplotlib. I'm thinking this is because I didn't use easy_install, which appears to put packages instead under /Library/…

Is there an easy way to tell QGIS to look for packages under /System/Library – is it merely a matter of setting some environment variable that QGIS looks at ?

thanks !

Update:

  • I'm installing QGIS from the .dmg package provided at kyngchaos.com
  • the error message started when I double click the .dmg to install it. I get a popup complaining that matplotlib is not installed even though it is installed and command line python can see it.

I believe (based on other notes at kyngchaos.com) that the difference is because of my use of python.org python and pip instead of system python, and the different place that libraries are placed in.

Best Answer

Could you uninstall matplotlib and reinstall using the methods outlined at Kyngchaos?

This works well for me on Mavericks. Is there any particular reason you need to do things differently?

As noted by @dakcarto above, it appears that

The KyngChaos install does not support non-system Python installs; so, you will need to install matplotlib in system Python's site-packages. The best means is to use KyngChaos's installer.

Related Question