Installing PyGMT on Google Colab

How do you install PyGMT on Google Colab notebook.

1 Like

Try running following commands in Google Colab:

!chmod +x
!bash ./ -bfp /usr/local
!conda update conda -y -q
!conda config --prepend channels conda-forge
!conda install -q -y --prefix /usr/local python=3.8 pygmt

import sys
import os

Then you should be able to use pygmt:

import pygmt

@seisman Worked well for me, thanks!