Failed import mne_connectivity

Hi everyone I don’t manage to import the mne_connectivity module , error: No module named ‘mne_connectivity’ but I’m sure that I have installed the package. Anyone could help me, please?

This could have been installed in another environment that the one that your current python is in. Some coding environments allow you to switch the active environment (spyder, vs code, and I think even jupyter). If you followed the instructions on the website, you likely put it in the mne environment, so just do conda activate mne, then type python -c 'import mne_connectivity' to test if it is installed there.

And it is pretty easy to install again - pip install -U mne-connectivity . Just make sure you activate the environment before doing the pip install part. conda env list will tell you all of the environments that are available.

–Jeff