install neuron on mac · install "xcode command line tools". install python 2.7...
TRANSCRIPT
![Page 1: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/1.jpg)
Install NEURON on MacThe example here is for El Capitan (10.11)
Install NEURON.Install XQuartz if neurondemo does not work.Install "XCode command line tools".Install Python 2.7 distribution.
Test NEURON + Python.Test MPI parallel from terminal.
git comes with "command line tools"
Or use the one that comes with your mac.
but anything >= OSX 10.7 is fine.
![Page 2: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/2.jpg)
Install NEURON on Mac 64bit dmg
![Page 3: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/3.jpg)
Open the downloaded dmg
![Page 4: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/4.jpg)
and drag NEURON−7.4 folder into /Applications
![Page 5: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/5.jpg)
The first time you run NEURON ...
![Page 6: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/6.jpg)
the OS thinks the provenance is questionable.
![Page 7: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/7.jpg)
Open "System Preferences". Select "Security and Privacy"
![Page 8: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/8.jpg)
turn off the blocking
![Page 9: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/9.jpg)
Now it will run
![Page 10: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/10.jpg)
you’ll have to Ok a few other programs as well.
![Page 11: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/11.jpg)
But success only if you have XQuartz installed.
![Page 12: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/12.jpg)
Ignore if neurondemo was successful
![Page 13: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/13.jpg)
Otherwise download XQuartz
![Page 14: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/14.jpg)
Open the dmg
![Page 15: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/15.jpg)
and launch the XQuartz installer.
![Page 16: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/16.jpg)
it can take a few minutes
![Page 17: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/17.jpg)
Press OK, but something to remember ...
![Page 18: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/18.jpg)
XQuartz is installed
![Page 19: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/19.jpg)
but now log out and log back in.
![Page 20: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/20.jpg)
Now neurondemo should be successful. exit via NEURONMainMenu/File/Quit
![Page 21: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/21.jpg)
Command Line Tools depend on OSX version
![Page 22: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/22.jpg)
El Capitan is 10.11
![Page 23: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/23.jpg)
Free, but need to sign in to Apple
![Page 24: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/24.jpg)
Anyone can be a Developer
![Page 25: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/25.jpg)
Double click on the correct one ... and the download URL will be displayed.
![Page 26: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/26.jpg)
Open and install in the usual way.
![Page 27: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/27.jpg)
Python and easy_install come with the mac but...
![Page 28: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/28.jpg)
this is an easy way to get OpenMPI and Mayavi
![Page 29: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/29.jpg)
So what do we have?
![Page 30: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/30.jpg)
Scipy, matplotlib, but not mayavi... conda install mayavi
![Page 31: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/31.jpg)
and now mayavi can be imported.
![Page 32: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/32.jpg)
Test a few things by opening a Terminal window. /Applications/Utilities/Terminal
![Page 33: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/33.jpg)
With PYTHONPATH, Python can import neuron /Applications/NEURON−7.4/nrn/lib/python
![Page 34: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/34.jpg)
nrnpyenv.sh helps with environment variables
![Page 35: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/35.jpg)
copy/paste allows nrniv to find anaconda packages.
![Page 36: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/36.jpg)
"conda install mpi4py" also installs openmpi
![Page 37: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/37.jpg)
Add the exports to your $HOME/.bash_profile
![Page 38: Install NEURON on Mac · Install "XCode command line tools". Install Python 2.7 distribution. Test NEURON + Python. Test MPI parallel from terminal. git comes with "command line tools"](https://reader033.vdocuments.net/reader033/viewer/2022043009/5f9d42e2dfee50395261147e/html5/thumbnails/38.jpg)
MPI works.