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

Chris Marsh chris.marsh at usask.ca
Mon Jan 11 11:50:21 PST 2021


Glad to hear it.
I'm not sure what Even et al's stance on using homebrew as an official
recommendation is. I am just a user who has gone down this route myself

On Mon, Jan 11, 2021 at 1:37 PM Marius Kreß <kress.marius at icloud.com> wrote:

> CAUTION: External to USask. Verify sender and use caution with links and
> attachments. Forward suspicious emails to phishing at usask.ca
>
> 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/
>
> 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
>
> Both methods should work though,
>
> Cheers
> Chris
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210111/3d1bb396/attachment-0001.html>


More information about the gdal-dev mailing list