[Qgis-developer] Force QGIS to use a different version of Python in Snow Leopard

Jorge Arevalo jorge.arevalo at geomati.co
Tue Aug 6 03:07:57 PDT 2013


Hello,

I'm using QGIS 1.8.0 for Snow Leopard, downloaded from KingChaos wiki
(http://www.kyngchaos.com/software/qgis). Once I open QGIS plugin
console, I can see QGIS is using Snow Leopard's default Python
(2.6.1).

At the same time, I've installed Python 2.7.5 and some packages I
need, like numpy or scipy. Specifically, I need scipy 0.12. If I open
python from a command line, version 2.7.5 is used.

The problem is I need that QGIS also uses Python 2.7, to detect scipy
0.12 (default system Python, 2.6.1, uses scipy 0.11.0). Default Python
is installed at /Library/Python, but my manually installed Python 2.7
is installed at /Library/Frameworks/Python.Framework. I guess QGIS
looks for default Python first.

How could I "force" QGIS to use my own Python version? Do I have to
compile it by myself, instead of using KingChaos packages? I was
thinking in something easier, like modifying Python path just for
QGIS.

Best regards,


-- 
Jorge Arévalo
http://geomati.co


More information about the Qgis-developer mailing list