Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install GDAL on OSX (virtualenv)
# what a headache!
# 10-05-2017
# Install kyngchaos 1.11 complete:
# Go into your folder where your virtualenv lives and activate
source bin/activate
# Build in tmp?
cd /tmp
pip download GDAL==1.11.2 (or whichever version you want)
tar -zxvf GDAL-1.11.2.tar.gz
cd GDAL-1.11.2
export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments
python build_ext\
# Build and install:
python build
python install
# Test
cd /back/to/project
python runserver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.