Having trouble installing mne

I can only install ā€˜mne-baseā€™ not mne.

I run ā€˜conda create --strict-channel-priority --channel=conda-forge --name=mne mne-baseā€™ and I got ā€˜mne-baseā€™ only. I got ā€˜ModuleNotFoundError: No module named ā€˜mneā€™ā€™ when I try to import mne. I built a new environment and run ā€˜pip install mneā€™ but still the same problem.

ā€˜mne-base 1.2.2 pyh57928b3_0 conda-forgeā€™
this is the only thing I got after I run ā€˜conda list | grep mneā€™.

Please help me with installing, thx.

Hello,

It looks like you are not in the virtual environment when you run the import command.
If you are unsure how virtual environment works, I recommend you use the MNE installers: MNE-Python installers ā€” MNE 1.2.2 documentation
which will create a dedicated python/conda environment.

Mathieu

2 Likes

Thank you for helping. I think the main problem is I tried to install mne in python 3.11. Now I run ā€˜pip install mneā€™ in a new environment of python 3.9 and everything is ok.

Thanks a lot.

Li

Many dependencies are not yet compatible with 3.11.