These instructions are for installing NEURON and NetPyNE with linux and a conda environment.
Create a neuron directory in your home directory, put the gzipped source files in it, and expand them.
cd $HOME
mkdir neuron
mv iv-mm.tar.gz neuron
mv nrn-nn.tar.gz neuron
cd neuron
tar xzf iv-mm.tar.gz
tar xzf nrn-nn.tar.gz
# renaming the new directories iv and nrn makes life simpler later on
mv iv-mm iv
mv nrn-nn nrn
cd iv
./configure --prefix=`pwd`
make
make install
conda create -n neuron ipython pip numpy
source activate neuron
cd ..
cd nrn
sudo apt-get install libopenmpi-dev openmpi-doc openmpi-bin # install MPI libraries
./configure --prefix=`pwd` --with-iv=$HOME/neuron/iv --with-nrnpython=$HOME/anaconda3/envs/neuron/bin/python --with-paranrn
make
make install
x86_64/bin/neurondemo
Replace x86_64
with your CPU type (e.g. i686
if necessary)
Create an nrnenv file in $HOME/neuron with the contents
export IV=$HOME/neuron/iv
export N=$HOME/neuron/nrn
# replace with hostcpu, e.g. i686, if necessary
export CPU=x86_64
export PATH="$IV/$CPU/bin:$N/$CPU/bin:$PATH"
Add the following line to the .bashrc file
source $HOME/neuron/nrnenv
Restart your terminal, or log out and log in again
source activate neuron
cd ~/neuron/nrn/src/nrnpython
python setup.py install
pip install netpyne
or if that doesn't work
cd ~/neuron
git clone [email protected]:Neurosim-lab/netpyne.git
cd netpyne
python setup.py install
neurondemo
oc> quit()
nrngui
oc> quit()
nrniv
oc> quit()
conda create -n neuron2 --clone neuron
source activate neuron2