# GMTCLibNotFoundError

**URL:** <https://forum.generic-mapping-tools.org/t/gmtclibnotfounderror/4545>\
**Category:** PyGMT Q&A\
**Tags:** gmt\
**Created:** [December 29, 2023, 7:45pm UTC](https://forum.generic-mapping-tools.org/t/gmtclibnotfounderror/4545 "2023-12-29T19:45:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![muscovite](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@muscovite](https://forum.generic-mapping-tools.org/u/muscovite)\
**Post date:** [December 29, 2023, 7:45pm UTC](https://forum.generic-mapping-tools.org/t/gmtclibnotfounderror/4545/1 "2023-12-29T19:45:37Z")

</div>

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 :

 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/b/bcd43887f67069d2873a8a13bb82f6bfe2a665c2.png)  
and the output is :  
 ![image](https://canada1.discourse-cdn.com/flex047/uploads/gmt/original/2X/e/e865db2782b7f8dae5d65038f3cab10d2f67dac1.png)  
anyone here can help me to fix this problem? Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![yvonnefroehlich](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yvonnefroehlich/32/5064_2.png) [@yvonnefroehlich](https://forum.generic-mapping-tools.org/u/yvonnefroehlich)\
**Post date:** [December 30, 2023, 5:38am UTC](https://forum.generic-mapping-tools.org/t/gmtclibnotfounderror/4545/2 "2023-12-30T05:38:22Z")

</div>

Hello @muscovite,

welcome to the GMT forum 🙂!

Looks like you are facing the installation issue described at [https://www.pygmt.org/dev/install.html#error-loading-gmt-shared-library-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:

````auto
```
your script formated as code
```

````

---

<div class="post-metadata">

**Author:** ![muscovite](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@muscovite](https://forum.generic-mapping-tools.org/u/muscovite)\
**Post date:** [January 2, 2024, 5:07pm UTC](https://forum.generic-mapping-tools.org/t/gmtclibnotfounderror/4545/3 "2024-01-02T17:07:14Z")

</div>

tysm, its worked when i installed with conda

---

<div class="post-metadata">

**Author:** ![rik.tjallingii](https://avatars.discourse-cdn.com/v4/letter/r/bb73d2/32.png) [@rik.tjallingii](https://forum.generic-mapping-tools.org/u/rik.tjallingii)\
**Post date:** [September 24, 2026, 9:32pm UTC](https://forum.generic-mapping-tools.org/t/gmtclibnotfounderror/4545/4 "2026-09-24T21:32:52Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![yvonnefroehlich](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/yvonnefroehlich/32/5064_2.png) [@yvonnefroehlich](https://forum.generic-mapping-tools.org/u/yvonnefroehlich)\
**Post date:** [September 26, 2026, 1:53pm UTC](https://forum.generic-mapping-tools.org/t/gmtclibnotfounderror/4545/5 "2026-09-26T13:53:09Z")

</div>

Hi @rik.tjallingii,

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