For simplicity, this installation excludes Interviews, MPI support, and everything else you don't really need if you just want to use NEURON to compile and run serial simulations. I may edit this in the future should the need arise.
1) Put this in your ~/.bash_profile and then start a new shell
Code: Select all
export PYTHONHOME=/path/to/your/python3 # For me it was /Users/rgerkin/miniconda3
export NEURON_HOME=/Applications/NEURON-7.5
export LD_LIBRARY_PATH=$PYTHONHOME/lib
export PATH=$PATH:$NEURON_HOME/nrn/x86_64/bin
export PYTHONPATH=$PYTHONPATH:$NEURON_HOME/nrn/lib/python/
Code: Select all
rm -rf $NEURON_HOME # Get rid of old NEURON installations
rm -rf $PYTHONHOME/lib/site-packages/neuron # Get rid old old NEURON code installations
Code: Select all
export PYTHON2 = /path/to/your/python2
$PYTHON2/bin/pip install mercurial
Code: Select all
$PYTHON2/bin/hg clone http://www.neuron.yale.edu/hg/neuron/nrn
cd nrn
sh build.sh
./configure --prefix=$NEURON_HOME/nrn --with-nrnpython=python3 # don't use "dynamic" since it doesn't actually work
make
sudo make install
Code: Select all
nrniv
python -c "import neuron"