Elephant is a pure Python package so that it should be easy to install on any system.
All dependencies can be found on the Python package index (PyPI).
For Debian/Ubuntu, we recommend to install numpy and scipy as system packages using apt-get:
$ apt-get install python-numpy python-scipy python-pip python-six
Further packages are found on the Python package index (pypi) and should be installed with pip:
$ pip install quantities
$ pip install neo
We highly recommend to install these packages using a virtual environment provided by virtualenv or locally in the home directory using the --user
option of pip (e.g., pip install --user quantities
), neither of which require administrator privileges.
On non-Linux operating systems we recommend using the Anaconda Python distribution, and installing all dependencies in a Conda environment, e.g.:
$ conda create -n neuroscience python numpy scipy pip six
$ source activate neuroscience
$ pip install quantities
$ pip install neo
The easiest way to install Elephant is via pip:
$ pip install elephant
To download and install manually, download the latest package from http://pypi.python.org/pypi/elephant
Then:
$ tar xzf elephant-0.5.0.tar.gz
$ cd elephant-0.5.0
$ python setup.py install
or:
$ python3 setup.py install
depending on which version of Python you are using.
To install the latest version of Elephant from the Git repository:
$ git clone git://github.com/NeuralEnsemble/elephant.git
$ cd elephant
$ python setup.py install