How to change pyGMT share dir

Hi, all.

When I plot some figure using pyGMT, I cannot use cpt-related things because the following error.

I guess it’s because the path of share directory is not correct, however I am very new to python (spyder user), so I do not know how to change this path correctly…

Is there anyone who knows how can solve this problem?
If someone let me know, I really would appreciate for that…