
Results in 0Traceback (most recent call last):įile "/usr/local/bin/gdal_merge.py", line 172, in raster_copy_with_mask
#HOW TO UPDATE PYTHON ON MAC TO 3.7 INSTALL#
First, I install according to the above comment.

Unfortunately the GeoTIFFs I'm using are too large to share, but I'm pretty sure the below error could be reproduced with any two images. Type "help", "copyright", "credits" or "license" for more information.Ĭorrect, I'm using GDAL for raster processing (satellite images, in my case). Kelvins-MacBook-Pro-899:~ kelvin$ python3.6 For instance, 2.7 and 3.7 both give a "ModuleNotFoundError: No module named 'osgeo'" error, but 3.6 works.

I have found that sometimes only one version of Python can correctly import gdal without any dramas. Python setup.py build_ext -gdal-config /usr/local/Cellar/gdal/HEAD-41888_2/bin/gdal-configĭo an 'ls /usr/local/Cellar/gdal/' if you need to get the revision number.

Python setup.py build_ext -I/Library/Frameworks/amework/Versions/2.3/Headers -L/Library/Frameworks/amework/Versions/2.3/unix/lib -gdal-config /Library/Frameworks/amework/Versions/2.3/unix/bin/gdal-configĪlternatively, install GDAL via brew, then do similar to the above. Via GDAL Framework / QGISįirst, you can install the GDAL Framework via QGIS (or get it directly), and then do. I've found two ways to install the GDAL Python bindings on Mac.
