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.