[Mne_analysis] errors with spyder in anaconda after installing mne python

Dan McCloy dan at mccloy.info
Mon Jun 29 13:33:55 EDT 2020
Search archives:

        External Email - Use Caution        

Hi Amie,

One option you could try is what Spyder developers call "the modular installation approach" [1] --- install Spyder into one conda environment, and install MNE-Python into a different environment. Then, when you launch Spyder, change the "Preferences > Python Interpreter > Use the following interpreter" setting to match the python executable in the MNE-Python conda environment. This would look something like:

# download MNE-Python environment file
curl --remote-name https://raw.githubusercontent.com/mne-tools/mne-python/master/environment.yml
# create new environment "mne"
conda env update -n mne --file environment.yml
# create new environment "spyder"
conda create -n spyder python=3 spyder
# activate spyder env & launch Spyder GUI
conda activate spyder
# now, set the python interpreter as described.

[1]: https://github.com/spyder-ide/spyder/wiki/Working-with-packages-and-environments-in-Spyder#working-with-other-environments-and-python-installations

-- dan
Daniel McCloy
Research Scientist
Institute for Learning and Brain Sciences
University of Washington

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, June 29, 2020 7:11 AM, Alexandre Gramfort <alexandre.gramfort at inria.fr> wrote:

> External Email - Use Caution
> hi,
> can you report what
> mne.sys_info()
> reports in a simple python terminal?
> did you remove all other Python / anaconda installs from your machine?
> Alex
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis

More information about the Mne_analysis mailing list