wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
chmod +x Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh
Then close out of any terminal you have open. If you are doing this over SSH then close the window. If local then restart computer. Then we will download the evironment file. If this command fails you can download the environmnet.yml file that is in this repo. It is the same file! Just make sure the file is in your working directory when running the next command.
curl -OL https://raw.githubusercontent.com/cyneuro/Modeling-Environment-Setup/refs/heads/main/environment.yml
conda env create -f environment.yml
Now you will be able to activate the anaconda environment using the command (NME stands for Neural Modeling Environment)
conda activate NME
This line is only needed if you plan on doing runs in parallel. You should have a version of mpi loaded before install for example mpich or openmpi.
pip install mpi4py-mpich
Neuron will soon be switching over to version 9.0 and some files won't work correctly in this version. It may be best to use the 8.2.4 version.
pip install neuron==8.2.4
The pip install of BMTK is not always the most up to date. If you think you need the most up to date version you can install from their GitHub
pip install bmtk
git clone https://github.com/cyneuro/bmtool.git
cd bmtool
python setup.py develop