Fork me on GitHub

Installation for Fedora 22

These instructions are specific to Fedora 22.

Required dependencies

First, be sure that your system is up-to-date:

$ sudo yum update

Then install the following packages:

$ sudo yum install python-devel numpy scipy python-matplotlib python-pip sympy gcc

These dependencies are not available as system packages, they have to be installed by hand:

$ pip install --user nibabel
$ pip install --user nipy

Optional dependencies

Install the following packages:

$ sudo yum install graphviz-python python-sphinx python-scikit-learn python-pillow python-joblib python-paramiko
$ pip install --user munkres

These dependencies are too old on the packages system manager:

$ pip install --user --upgrade sphinx

If you plan to use our specific viewer (pyhrf_viewer), run:

$ sudo yum install PyQt4 python-matplotlib-qt4

PyHRF Installation

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

PyHRF update

To update the package, use pip:

$ pip install --upgrade --user pyhrf

PyHRF uninstallation

To remove pyhrf package, use pip:

$ pip uninstall pyhrf