eeg connectivity

i wanted to use " mne_connectivity.spectral_connectivity " then i install mne-connectivity by using pip then when i write : " from mne.connectivity import spectral_connectivity "
it give me always :

ModuleNotFoundError: No module named ‘mne.connectivity’

This must be:

from mne_connectivity import spectral_connectivity_epochs

or

from mne_connectivity import spectral_connectivity_time
1 Like

i use also this one but i got another error : " ImportError: cannot import name ‘spectral_connectivity’ from ‘mne_connectivity’ (/usr/local/lib/python3.8/dist-packages/mne_connectivity/init.py) "

I edited my post above, please try the corrected lines.