PyGMT relies on GMT. When you run pip install pygmt
, you only install the PyGMT package. The required GMT package (which is not written in Python) is still missing.
I think you have two choices:
- Install miniconda instead, which is much smaller than anaconda.
- Build GMT from source code, and then set GMT_LIBRARY_PATH to the path of the GMT library