These instructions are specific to Debian 8.
First, be sure that your system is up-to-date:
$ sudo apt-get update
$ sudo apt-get upgrade
Then install the following packages:
$ sudo apt-get install python-dev python-numpy python-scipy python-matplotlib python-pip python-sympy python-nibabel gcc
Not available on system repositories:
$ pip install --user nipy
Install the following packages:
$ sudo apt-get install python-scikits-learn python-joblib python-pygraph python-pygraphviz python-PIL python-munkres python-paramiko
This dependency is too old on the packages system manager:
$ pip install --user sphinx
If you already installed sphinx with the packages manager, add the flag
--upgrade
to the previous command
If you plan to use our specific viewer (pyhrf_viewer), run:
$ sudo apt-get install python-qt4
Install package from PyPI.
It is recommended to install the package in user mode (the --user
option).
$ pip install --user pyhrf
If you install in user mode, you need to concatenate $HOME/.local/bin
to
your $PATH
environment variable by adding the following to your
$HOME/.bashrc
file:
if [ -d "$HOME/.local/bin" ]; then
PATH="$HOME/.local/bin:$PATH"
fi
Update your $PATH
environment variable by sourcing your .bashrc
file:
$ source ~/.bashrc
Then you can run the unit tests:
$ pyhrf_maketests