No module named aqt

I am trying the basic addon described here: https://addon-docs.ankiweb.net/a-basic-addon.html

it says
ModuleNotFoundError: No module named ‘aqt’

but i have already installed aqt using “pip install aqt”

i am using vim on a macbook air with m1

Looks like you’re trying to run the add-on outside Anki, which is not possible.

The packages are mainly provided for type hints and code completion.

1 Like

Thank you so much

i realized that i needed to navigate to to addons folder and create the init.py file

everything is working now