Installation¶
Required dependencies¶
Required dependencies include:
- Python (3.12 or later)
- packaging (22.0 or later)
- numpy (2.0 or later)
- numcodecs (0.14 or later)
- google-crc32c (1.5 or later)
- typing_extensions (4.14 or later)
- donfig (0.8 or later)
pip¶
Zarr is available on PyPI. Install it using pip:
There are a number of optional dependency groups you can install for extra functionality.
These can be installed using pip install "zarr[<extra>]", e.g. pip install "zarr[gpu]"
remote: support for reading/writing to remote data stores (fsspec, obstore)gpu: support for GPUs (cupy)cli: support for thezarrcommand-line interface (typer)optional: support for path-like access to local and remote stores (universal-pathlib)cast-value-rs: support for thecast_valuecodec (cast-value-rs)
conda¶
Zarr is also published to conda-forge. Install it using conda:
Conda does not support optional dependencies, so you will have to manually install any packages needed to enable extra functionality.
Nightly wheels¶
Development wheels are built nightly and published to the scientific-python-nightly-wheels index. To install the latest nightly build:
pip install --pre --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple zarr
Note that nightly wheels may be unstable and are intended for testing purposes.
Dependency support¶
Zarr has endorsed Scientific-Python SPEC 0 and now follows the version support window as outlined below:
- Python: 36 months after initial release
- Core package dependencies (e.g. NumPy): 24 months after initial release
Development¶
To install the latest development version of Zarr, see the contributing guide.