PyGMT and bash scripting

Hi everyone,

I have PyGMT up and running inside Python but I am trying to use it inside a bash script and I get always the ModuleNotFoundError: No module named ‘pymgt’. The code is just something for testing

#! /usr/bin/python

import pymgt

fig = pygmt.Figure()

region = [125, 155, 30, 55]
fig.coast(region=region, shorelines=True)
fig.show()

I don’t know if I am doing something wrong or just it is just not possible to use it through bash. I would appreciate some light on this.

Thank you in advance

pymgt > pygmt ?