Error installing Cartopy

I am trying to install CartoPy, and matplotlib on twitter asked me to post the error here.

I am trying to install CartoPy by using pip - pip install CartoPy, and the error is:
johnbarrett@Johns-MBP ~ % pip install Cartopy

Collecting Cartopy

Using cached Cartopy-0.17.0.tar.gz (8.9 MB)

Installing build dependencies … done

Getting requirements to build wheel … error

ERROR: Command errored out with exit status 1:

command: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 /


pip/_vendor/pep517/ get_requires_for_build_wheel /var/folders/0x/


cwd: /private/var/folders/0x/5j2skgpj1t3cbkv_22rhnymc0000gn/T/pip-installom2p2ini/


Complete output (3 lines): UserWarning: Unable to determine GEOS version. Ensure you have

3.3.3 or later installed, or installation may fail.


Proj 4.9.0 must be installed.

ERROR: Command errored out with exit status 1: /Library/Frameworks/

Python.framework/Versions/3.8/bin/python3.8 /Library/Frameworks/

Python.framework/Versions/3.8/lib/python3.8/site-packages/pip/_vendor/pep517/ get_requires_for_build_wheel /var/folders/0x/

5j2skgpj1t3cbkv_22rhnymc0000gn/T/tmps3e9wb8z Check the logs for full

command output.

You will need to have the C libraries Proj and GEOS installed, and their development headers. I do not know where to find them on macOS, but I would think homebrew would have them.

Alternatively, use conda which provides pre-compiled binaries of those libraries and Cartopy.