Skip to content

Instantly share code, notes, and snippets.

@palmerj
Last active February 18, 2018 19:31
Show Gist options
  • Save palmerj/a283b4565e37ea8f703d7591d4e1207a to your computer and use it in GitHub Desktop.
Save palmerj/a283b4565e37ea8f703d7591d4e1207a to your computer and use it in GitHub Desktop.
Python Environment setup for brew GDAL2 on MacOSX with GDAL framework installed as well (i.e no brew link)
export PATH="$(brew --prefix)/opt/python/libexec/bin:$(brew --prefix)/opt/gdal2/bin:$(brew --prefix)/opt/gdal2-python/bin:$PATH"
export PYTHONPATH=$(brew --prefix)/lib/python2.7/site-packages:$(brew --prefix)/opt/gdal2-python/lib/python2.7/site-packages/:$PYTHONPATH
@palmerj
Copy link
Author

palmerj commented Feb 18, 2018

export PATH="/usr/local/opt/python/libexec/bin:/usr/local/opt/gdal2/bin:/usr/local/opt/gdal2-python/bin:/usr/local/opt/gdal2-python/libexec/bin:$PATH"
export PYTHONPATH=/usr/local/lib/python2.7/site-packages:/usr/local/opt/gdal2-python/lib/python2.7/site-packages/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment