Elephant is a pure Python package so that it should be easy to install on any system.
- The following packages are required to use Elephant:
- Python >= 2.7
- numpy >= 1.6.2
- scipy >= 0.11.0
- quantities >= 0.9.0
- neo == 0.4.0
Note
at the time of writing Neo 0.4.0 has not been released. You should therefore use this snapshot.
- The following packages are optional in order to run certain parts of Elephant:
- For using the pandas_bridge module:
- pandas >= 0.14.0
- For building the documentation:
- numpydoc >= 0.5
- sphinx >= 1.2.2
- For running tests:
- nose >= 1.3.3
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
Further packages are found on the Python package index (pypi) and should be installed with pip:
$ pip install quantities
$ pip install git+https://github.com/NeuralEnsemble/python-neo.git@apibreak#egg=neo-apibreak
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
$ source activate neuroscience
$ conda install numpy scipy pip
$ pip install quantities
$ pip install git+https://github.com/NeuralEnsemble/python-neo.git@apibreak#egg=neo-apibreak
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.1.tar.gz
$ cd elephant-0.1
$ 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