[Qgis-user] matplotlib is not found in QGIS 2.1.0-Master

gene martin.laloux at gmail.com
Sat Sep 14 03:13:41 PDT 2013


 Right, the QGIS version of KyngChaos and the Nightly Mac Build of Larry
Shaffer use the default Apple Python (modules are installed in the
site-packages folder: /Library/Python/2.x/site-packages/).

That's why the matplotlib version of KingChaos is installed  in
/Library/Python/2.6/site-packages/ (Snow Leopard) and
/Library/Python/2.7/site-packages/ (Lion, Mountain Lion).

Why ? Because  the default Apple Python is installed by default, the others
no.

Of course, you can install other Python versions on Mac OS X (each one set
up its own version of Python but they are invisible for these versions of
QGIS unless you are a Unix specialist (in PATH's management)).

-  the official versions of Python.org: site-packages folder  in
/Library/Frameworks/Python.framework/Versions/2.x /lib/;
-  same for the Enthought Python, scientific distribution with many modules
preinstalled, numpy, scipy, matplotlib;
-  the  Homebrew version: site-packages folder  in
/usr/local/lib/python2.x/site-packages;
-  the MacPorts version : site-packages folder  in
/opt/local/lib/python2.x/site-packages; 
-  the Fink version: site-packages folder  in 
/sw/lib/python2.x/site-packages);
-  the Anaconda version, scientific distribution with many modules
preinstalled, numpy, scipy, matplotlib: site-packages folder  in 
~/anaconda/lib/python2.7/site-packages/;
-  and others as If you build  Python from source

If you are a Python specialist, you can always try to add the site-package
folder of one of the others Pythons (same version) to the PYTHONPATH of the
Apple Python with sys.path.insert(0,'/usr/local/lib/python2.7'),
site.addsitedir('/usr/local/lib/python2.7') or a .pth file, but beware of
crashes....( Too many different Python versions on my system and causing
problems
<http://stackoverflow.com/questions/14117945/too-many-different-python-versions-on-my-system-and-causing-problems> 
) 

And, If you absolutely want to use others versions of Python,  there are
other versions of QGIS available (with Homebrew, 
http://braumeister.org/repos/Homebrew/homebrew-science/formula/qgis
<http://braumeister.org/repos/Homebrew/homebrew-science/formula/qgis>   and 
http://spanring.eu/blog/2011/01/31/quantum-gis-and-homebrew-pt-1/
<http://spanring.eu/blog/2011/01/31/quantum-gis-and-homebrew-pt-1/>  , with
MacPorts,...). They use their respective version of Python/site-packages.




--
View this message in context: http://osgeo-org.1560.x6.nabble.com/matplotlib-is-not-found-in-QGIS-2-1-0-Master-tp5077699p5077828.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.



More information about the Qgis-user mailing list