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.
ArviZ can be installed either using pip or conda-forge.
pip install arviz
Use the below pip command to install ArviZ with all of its Optional dependencies.
pip install "arviz[all]"
conda install -c conda-forge arviz
If you want to install the latest development version of ArviZ, use the following command:
pip install git+https://github.com/arviz-devs/arviz
Note: It can take sometime to execute depending upon your internet connection.
The required dependencies for installing ArviZ are:
setuptools>=60.0.0 matplotlib>=3.2 numpy>=1.20.0 scipy>=1.8.0 packaging pandas>=1.3.0 xarray>=0.21.0 h5netcdf>=1.0.2 typing_extensions>=4.1.0 xarray-einstats>=0.3
ArviZ follows NEP 29 and SPEC 0 to choose the minimum supported versions.
The list of optional dependencies to further enhance ArviZ is given below.
numba netcdf4 bokeh>=1.4.0,<3.0 contourpy ujson dask[distributed] zarr>=2.5.0
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.
Necessary for creating advanced interactive visualisations. The Bokeh installation guide can be found over here.
If available, ArviZ makes use of faster ujson when
arviz.from_json()is invoked. UltraJSON can be either installed via pip or conda.
Necessary to scale the packages and the surrounding ecosystem. The installation details can be found at this link.