Install neo++ in a virtual environment

sudo apt-get install virtualenvwrapper python-pyqt4
mkvirtualenv NEO --system-site-packages
workon NEO

Then copy the following into a bashfile and run it – bash bashfile

#!/bin/bash
# Install script
set -x  # make sure each command is printed in the terminal

function pip_install {
  pip install --upgrade "$@"
  if [ $? -ne 0 ]; then
    echo "could not install $p - abort"
    exit 1
  fi
}

pip_install cython
pip_install h5py==2.5.0
pip_install tables
pip_install sqlalchemy
pip_install sqlalchemy-migrate
pip_install scikit-learn
pip_install pywavelets

git clone https://github.com/NeuralEnsemble/elephant.git
git clone https://github.com/OpenElectrophy/OpenElectrophy.git
git clone https://github.com/rproepp/spykeviewer.git
git clone https://github.com/rproepp/spykeutils.git
git clone https://github.com/jzaremba/guidata.git
git clone https://github.com/PierreRaybaut/guiqwt.git

cd guidata && python setup.py install
cd ..
cd guiqwt && python setup.py build install
cd ..
cd python-neo && python setup.py develop
cd ..
cd spykeutils && python setup.py develop
cd ..
cd spykeviewer && python setup.py develop
cd ..
cd OpenElectrophy && python setup.py develop
cd ..
cd elephant && python setup.py develop

Leave a Reply