- Download GDAL package from the website: http://www.kyngchaos.com/software/frameworks/ 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.