It was a pain to install cartopy on macOS. Here is what I did. It works as of Feb 10 2020. Uses proj, geos, and gdal from homebrew. none of that conda crap. Inspiration from here
brew install proj # version 6.3.0
brew install geos # version 3.8.0
brew install gdal # version 2.4.4nice clean Cython install
python -m pip install cythonWe need to do this first so it finds the right shapely, I think??
Install without the binary [otherwise Bus error](SciTools/cartopy#1274
python -m pip install --no-binary :all: shapelyNeed to force pip to install the same gdal version as homebrew installed. See here
python -m pip install GDAL==`gdalinfo --version | sed s/,// | awk '{print $2}'`Must deal with clang which is system default compiler on macOS
export USE_OMP=0 && python -m pip install git+https://github.com/storpipfugl/pykdtree.gitpip install matplotlib Pillow pyepsg scipy OWSLib fiona pyproj numpy pyshp sixI needed to install the dev244 version because of some issues using versions of proj v6.0.0 and above. Presumably will be fixed in next official version release. See here.
export CFLAGS="-I/usr/local/include" && export LDFLAGS="-L/usr/local/lib" && python -m pip install git+https://github.com/SciTools/cartopy.git --no-binary cartopy