Installation guide

This section provides detailed information about installing ArviZ. Most ArviZ functionality is available with the basic requirements, but ArviZ also has optional dependencies to further enhance the library. This guide will cover both basic and fully-fledged ArviZ installs and several installation methods.

Stable

ArviZ can be installed either using pip or conda-forge.

Using pip

pip install arviz

Use the below pip command to install ArviZ with all of it’s Optional dependencies.

pip install arviz[all]

Using conda-forge

conda install -c conda-forge arviz

Development

If you want to install the latest development version of ArviZ, then you may use

pip install git+https://github.com/arviz-devs/arviz

Dependencies

Required dependencies

The required dependencies for installing ArviZ are:

setuptools>=38.4
matplotlib>=3.0
numpy>=1.12
scipy>=0.19
packaging
pandas>=0.23
xarray>=0.16.1
netcdf4
typing_extensions>=3.7.4.3,<4

Optional dependencies

The list of optional dependencies to further enhance ArviZ are.

numba
bokeh>=1.4.0
ujson
dask
zarr>=2.5.0
  • Numba

    Necessary to speed up the code computation. The installation details can be found here. Further details on enhanced functionality provided in ArviZ by Numba can be found here.

  • Bokeh

    Necessary for creating advanced interactive visualisations. The Bokeh installation guide can be found over here.

  • UltraJSON

    If available, ArviZ makes use of faster ujson when arviz.from_json() is invoked. UltraJSON can be either installed via pip or conda.

  • Dask

    Necessary to scale the packages and the surrounding ecosystem. The installation details can be found at this link.