Planned maintenance on Wednesday, 2021-01-20, 17:00-18:00. Expect some interruptions during that time

installation.rst 1.2 KB
Newer Older
Martin Reinecke's avatar
Martin Reinecke committed
1 2 3 4
Installation
============


Martin Reinecke's avatar
Martin Reinecke committed
5
In the following, we assume a Debian-based Linux distribution. For other
Martin Reinecke's avatar
Martin Reinecke committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
distributions, the "apt" lines will need slight changes.

NIFTy4 and its mandatory dependencies can be installed via::

    sudo apt-get install git libfftw3-dev python python-pip python-dev
    pip install --user git+https://gitlab.mpcdf.mpg.de/ift/NIFTy.git@NIFTy_4

(Note: If you encounter problems related to `pyFFTW`, make sure that you are
using a pip-installed `pyFFTW` package. Unfortunately, some distributions are
shipping an incorrectly configured `pyFFTW` package, which does not cooperate
with the installed `FFTW3` libraries.)

Plotting support is added via::

    pip install --user matplotlib

Martin Reinecke's avatar
Martin Reinecke committed
22
Support for spherical harmonic transforms is added via::
Martin Reinecke's avatar
Martin Reinecke committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38

    pip install --user git+https://gitlab.mpcdf.mpg.de/ift/pyHealpix.git

MPI support is added via::

    sudo apt-get install openmpi-bin libopenmpi-dev
    pip install --user mpi4py

Installation for Python 3
-------------------------

If you want to run NIFTy with Python 3, you need to make the following changes
to the instructions above:

- in all `apt-get` commands, replace `python-*` by `python3-*`
- in all `pip` commands, replace `pip` by `pip3`