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’.
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.
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.