GMTCLibNotFoundError

Hello, i’m beginner user in GMT. I’ve installed GMT and pygmt (using pip and it’s suscess). But when I test it in notebook with the code :


and the output is :

anyone here can help me to fix this problem? Thanks in advance :slight_smile:

Hello @muscovite,

welcome to the GMT forum :slightly_smiling_face:!

Looks like you are facing the installation issue described at https://www.pygmt.org/dev/install.html#error-loading-gmt-shared-library-at. Can you please try the solution explained there.


One tip for next time posting: Please avoid posting screenshots of code or warning / error messages, but simply copy past those. You can format your script as code by placing three backticks in the line before and after the block with the script:

```
your script formated as code
```

tysm, its worked when i installed with conda

I have pyGMT installed using the Thonny application manager > search on PyPI and get the following error:
Python GMTCLibNotFoundError: Error loading GMT shared library at ‘libgmt.dylib’. dlopen(libgmt.dylib, 0x0006): tried: ‘libgmt.dylib’ (no such file), ‘/System/Volumes/Preboot/Cryptexes/OSlibgmt.dylib’ (no such file), ‘/Applications/Thonny.app/Contents/Frameworks/libgmt.dylib’ (no such file), ‘/usr/lib/libgmt.dylib’ (no such file, not in dyld cache), ‘libgmt.dylib’ (no such file), ‘/usr/lib/libgmt.dylib’ (no such file, not in dyld cache)

running this on OSX.

any help is much apreciated, thanks!

Hi @rik.tjallingii,

maybe looking at this list of common installation can help you to fix your issue.