# installation failure on OS X

**URL:** <https://mne.discourse.group/t/installation-failure-on-os-x/1555>\
**Category:** Mailing List Archive (read-only)\
**Tags:** list-archive\
**Created:** [June 21, 2018, 5:58pm UTC](https://mne.discourse.group/t/installation-failure-on-os-x/1555 "2018-06-21T17:58:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 21, 2018, 5:58pm UTC](https://mne.discourse.group/t/installation-failure-on-os-x/1555/1 "2018-06-21T17:58:10Z")

</div>

External Email - Use Caution

Hi,  
&nbsp;&nbsp;&nbsp;I could use some help on installing MNE. I have some UNIX experience and am a newcomer to Python. On OS X 10.13.5 I followed the installation instructions at [https://www.martinos.org/mne/stable/install\_mne\_python.html](https://www.martinos.org/mne/stable/install_mne_python.html)

The version numbers are:  
conda 4.5.4  
Python 3.6.5 :: Anaconda, Inc.

Everything went fine until I got to:

conda env create -f environment.yml

which resulted in the error:

NotWritableError: The current user does not have write permissions to a required path.  
&nbsp;&nbsp;path: /Users/jdien/.conda/environments.txt

I didn?t notice the error message and went all the way to the end.

I got the message that MessagePack wasn?t installed, perhaps because of the error, so I installed it manually.

When I wasn?t able to import MNE, I went back and saw the problem. .conda belonged to root rather than me and I didn?t have permission. I fixed the permissions problem and redid the conda env create -f environment.yml step.

This time it mostly went fine all the way through.

I did get the message that:

mkl-random 1.0.1 requires cython, which is not installed.  
mkl-fft 1.0.0 requires cython, which is not installed.

when I tried manually installing cython, I was informed that it was already installed.

anyway, when I get to the final step, I get:

> > > import mne

Traceback (most recent call last):  
&nbsp;&nbsp;File "\<stdin\>", line 1, in \<module\>  
ModuleNotFoundError: No module named 'mne'

I?m not sure what to do at this point. Any assistance would be greatly appreciated!

Joe

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 21, 2018, 7:20pm UTC](https://mne.discourse.group/t/installation-failure-on-os-x/1555/2 "2018-06-21T19:20:26Z")

</div>

External Email - Use Caution

> When I wasn?t able to import MNE, I went back and saw the problem. .conda  
> belonged to root rather than me and I didn?t have permission. I fixed the  
> permissions problem and redid the conda env create -f environment.yml step.

That's odd -- perhaps someone did a `sudo` operation at some point.

> This time it mostly went fine all the way through.

You might need to do `conda env remove -n mne` and then start over. Maybe  
there was some cruft left in there.

> I?m not sure what to do at this point. Any assistance would be greatly  
> appreciated!

You got this error after the `source activate mne` step? If you do `which  
python` does it tell you `~/anaconda3/envs/mne/bin/python`? Doing `conda  
list` will list all the packages currently available in the environment.  
-------------- next part --------------  
An HTML attachment was scrubbed...  
URL: [http://mail.nmr.mgh.harvard.edu/pipermail/mne\_analysis/attachments/20180621/0db127de/attachment.html](http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20180621/0db127de/attachment.html)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/mne/original/1X/85cc6bd2b69cb698a166dc6d880fb550510d0144.jpeg) [@system](https://mne.discourse.group/u/system)\
**Post date:** [June 21, 2018, 8:07pm UTC](https://mne.discourse.group/t/installation-failure-on-os-x/1555/3 "2018-06-21T20:07:46Z")

</div>

External Email - Use Caution

Okay, I did the remove command like you suggested and then redid the curl command (said it was all there), then the conda env create command and it went through everything again. I got the errors about cython again. "which python" does indeed produce the correct result. I did the python command and then ?import mne?. This time no error! conda list does include mne as one of the packages. 🙂

Thanks!

Joe
