MNE installation success using Mambaforge

Hello everyone,

I had meant to post this a month ago but got delayed. I apologize for that!

  • MNE version: 1.4.2
  • operating system: Windows-10-10.0

I had previously posted regarding issues with MNE installation https://mne.discourse.group/t/unable-to-import-mne-version-1-3-1-error-documenting-cosine-score-stc-true-metric/6941/3?u=srijita
After going through the install and uninstall process (using conda Install via pip or conda β€” MNE 1.5.1 documentation, pip, mamba, MNE standalone installer) too many times, I could finally figure out the process which has worked for me.

  1. Download and install Anaconda from their website: https://anaconda.org/
  2. Download Mambaforge from their website GitHub - conda-forge/miniforge: A conda-forge distribution.
    A Miniforge command prompt is created after successful installation.
  3. Open the Miniforge prompt and type in base:

mamba create --override -channels --channel=conda-forge --name=mne mne
activate mne

This will create a new environment called mne
4. On opening Anaconda distributor, you should see the new environment mne. After selecting mne as the environment, you can install the IPython platform that you use. I use Spyder and as of now I have no issues with functioning of MNE.

P.S- I am not from a Computer Science background, so it took me a while to figure this out. Thought of sharing this, if it is of help to anyone.

Thanks,
Srijita

2 Likes

Nice idea to share a success story, here is mine :grinning:

Ubuntu Linux, everything (including 3D) working after the following commands were executed:

conda create --strict-channel-priority --channel=conda-forge --name=mne mne-base h5io h5py 
pymatreader

3D doesn’t work yet, it complains about a valid 3D backend missing.

curl --remote-name https://raw.githubusercontent.com/mne-tools/mne-python/master/environment.yml
conda env update --file environment.yml

Now 3D plotting works, but the plotting window disappears. You can either add β€œ-i” after the python3 command or e.g. install Spyder:
conda install --channel=conda-forge spyder=5.4.3
Not sure if this version is mandatory, but works.

2 Likes