Skip to content

Instantly share code, notes, and snippets.

@artrey
Created October 28, 2023 21:04
Show Gist options
  • Save artrey/8f36cbba3e477176b6606928511cd394 to your computer and use it in GitHub Desktop.
Save artrey/8f36cbba3e477176b6606928511cd394 to your computer and use it in GitHub Desktop.
GDAL local installing

1. Install system gdal

brew install gdal
apt install libgdal-dev gdal-bin

2. Install required packages

wheel is really important! without it you can't use gdal_array

pip install -U pip setuptools wheel

3. Install numpy before gdal!

pip install -U numpy

4. Install gdal

pip install --no-cache-dir --force-reinstall --no-build-isolation gdal==$(gdal-config --version)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment