[gdal-dev] Unable to install GDAL on macOS with pip

Marius Kreß kress.marius at icloud.com
Mon Jan 11 11:37:46 PST 2021


Thank you, this worked! Maybe this should be mentioned on the Download page? I think it is a bit incomplete in general: Nothing on macOS and the Windows section just mentions Conda and no alternatives (like gisinternals.com and OSGeo4W). Maybe it could be expanded?

Marius

> Am 11.01.2021 um 19:18 schrieb Chris Marsh <chris.marsh at usask.ca>:
> 
> Hi,
> You need to have the gdal binaries installed before pip install gdal will work. Specifically, pip install gdal installs the python bindings for gdal.
> 
> In my opinion on mac, the easiest way is to install gdal via homebrew. Then the configuration utility gdal-info should be on the path and pip install GDAL should work
> https://pypi.org/project/GDAL/ <https://pypi.org/project/GDAL/>
> 
> Going the homebrew route for gdal will ensure you have everything needed for gdal to work and avoids the complication of having to compile gdal yourself. 
> 
> Personally, I use gdal from base homebrew and then use this repackaging of the python gdal bindings. I've found it to be more reliable with venvs.
> https://github.com/nextgis/pygdal <https://github.com/nextgis/pygdal>
> 
> Both methods should work though,
> 
> Cheers
> Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210111/18d8d048/attachment.html>


More information about the gdal-dev mailing list