# Installation¶

## Dependencies¶

• Minimum : Python (2.7, >=3.4), numpy, matplotlib, psutil, future, subprocess32 (for Python 2.7 only)
• Full functionality: h5py, h5netcdf, pillow, imageio, mpi4py, scipy, pyfftw (requires FFTW library)
• Optional: OpenCV with Python bindings, scikit-image

It is strongly recommended to install NumPy and Matplotlib before installing FluidDyn.

FluidDyn also used some other packages for some particular tasks, as in particular Scipy and h5py. Since they can be difficult to get for some small hardware, they are not considered as real dependencies, but be prepared to get ImportError if you try to do something using these packages without them.

## Basic installation¶

FluidDyn can be installed from the Python Package Index by the command:

pip install fluiddyn


python setup.py install


## Install in development mode¶

Get the source by cloning the repository (as explained in Advice for FluidDyn developers) or by manually downloading the package from the Bitbucket page or from the PyPI page.

The development mode is often very convenient. From the root directory of the project, run:

python setup.py develop


After the installation, it is a good practice to run the unit tests by running python -m unittest discover from the root directory or from any of the “test” directories.