# No module named pygmt - VS code

**URL:** <https://forum.generic-mapping-tools.org/t/no-module-named-pygmt-vs-code/1231>\
**Category:** PyGMT Q&A\
**Tags:** gmt\
**Created:** [January 21, 2021, 5:13am UTC](https://forum.generic-mapping-tools.org/t/no-module-named-pygmt-vs-code/1231 "2021-01-21T05:13:27Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![weiji14](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/weiji14/32/33_2.png) [@weiji14](https://forum.generic-mapping-tools.org/u/weiji14)\
**Post date:** [February 1, 2021, 9:23am UTC](https://forum.generic-mapping-tools.org/t/no-module-named-pygmt-vs-code/1231/11 "2021-02-01T09:23:19Z")

</div>

Right, you’ll need to install the `pygmt` kernel then. Run these commands in your anaconda prompt:

```bash
conda activate pygmt
python -m ipykernel install --user --name pygmt #to install conda env properly
jupyter kernelspec list --json #see if kernel is installed

```

The output should of `jupyter kernelspec list --json` should include a section that looks like this:

```auto
    "pygmt": {
      "resource_dir": "/home/username/.local/share/jupyter/kernels/pygmt",
      "spec": {
        "argv": [
          "/home/username/miniconda3/envs/pygmt/bin/python",
          "-m",
          "ipykernel_launcher",
          "-f",
          "{connection_file}"
        ],
        "env": {},
        "display_name": "pygmt",
        "language": "python",
        "interrupt_mode": "signal",
        "metadata": {}
      }
    },

```

After this, if you re-launch jupyter, there should be a `pygmt` kernel you can connect to. Let me know if that works.

---

_[View the full topic](https://forum.generic-mapping-tools.org/t/no-module-named-pygmt-vs-code/1231)._
