

- #Where does qgis install python on mac mac os x#
- #Where does qgis install python on mac code#
- #Where does qgis install python on mac mac#
All qgis-xx formulae QGIS applications will run just fine from their Cellar keg install directory. Python modules of the formula(e) installs are not overwritten by the development build upon make install. If using Homebrew Python 2.7, install with: For example, the osgeo.gdal and osgeo.ogr modules referenced by /Library/Python/2.7/site-packages/gdal-py2.7.pth will link to /Library/Frameworks/amework components instead of to Homebrew’s gdal formula install. Important Note: If you intend to also have the latest stable version of QGIS and its supporting frameworks from installed concurrently with a separate master build of QGIS, it is highly recommended you use Homebrew’s Python, since it will allow you to isolate some Python dependencies that may cause crashes, namely modules that link to different supporting libraries. However, the more formulae you install, the higher likelihood you will end up running into a formulae that requires installing Homebrew’s Python.
#Where does qgis install python on mac mac#
Newer Mac system’s (>= 10.7) have a version of Python 2.7 installed, so using Homebrew’s is unnecessary.

QGIS currently only supports Python 2.5-2.7. The first important decision to make is regarding whether to use Homebrew’s or the OS X system Python. This allows for multiple build scenarios, including placing the dependencies on an external drive, though that requires building all deps with special ‘bottle’ parameters (see advanced utility brew stack and its command line completion). usr/local/osgeo4mac or /opt/osgeo4mac, instead of /usr/local. If desired, this setup supports builds where the OSGeo4Mac deps are in a non-standard Homebrew location, e.g. Such unnecessary building can comparatively take hours and hours more, depending upon your available CPU cores.

Installing Homebrew to a non-standard prefix will force many of the bottled formulae to be built from source, since many of the available bottles are built specific to /usr/local. QGIS has many dependencies which are available as “bottles” (pre-built binary installs) from the Homebrew project. opt/osgeo4mac, do yourself a favor (especially if new to Homebrew) and install in the default directory of /usr/local. While all of the formulae and scripts support building QGIS using a Homebrew non-standard prefix, e.g. Install Homebrewīrew doctor # <- and fix everything that it mentions, if you can Homebrew Prefix QGIS’s CMake build process uses generated Makefiles for building QGIS source directly with clang, not via Xcode project files, i.e.
#Where does qgis install python on mac mac os x#
Mac OS X XCode and Command Line Tools, for Homebrew and building QGIS source.

Note: This setup, though heavily tested, is currently experimental and may change.
#Where does qgis install python on mac code#
In addition to using this tap to install a QGIS stable formula, you can also use it to fully set up a development environment for an externally built QGIS from a clone of the current development (master) branch of the source code tree.
