GDAL: How to install it on MAC

  • Download GDAL package from the website: and run it.
  • Export PATH
    echo 'export PATH=$PATH:/Library/Frameworks/GDAL.framework/Programs' >> ~/.zshrc
    source ~/.zshrc
  • Check the configuration
    gdal-config --version 2.3.3
  • Install python library
    pip install gdal==2.3.3 (from the command above)
  • I have tried:

    pip install gdal

    but got so many errors about clang or gcc … because headers were not the same.

Leave a Reply

Your email address will not be published. Required fields are marked *


This site uses Akismet to reduce spam. Learn how your comment data is processed.