- Python 3.6 or later.
- attrs (18.2.0 or later)
- numpy
- xarray (0.10.0 or later)
- zarr (2.3.0 or later)
- dask
- graphviz (for model visualization)
xarray-simlab can be installed or updated using conda:
$ conda install xarray-simlab -c conda-forge
This installs xarray-simlab and all common dependencies, including numpy and xarray.
xarray-simlab conda package is maintained on the conda-forge channel.
You can also install xarray-simlab and its required dependencies using
pip:
$ pip install xarray-simlab
To install xarray-simlab from source, be sure you have the required dependencies (numpy and xarray) installed first. You might consider using conda to install them:
$ conda install attrs xarray dask zarr numpy pip -c conda-forge
A good practice (especially for development purpose) is to install the packages in a separate environment, e.g. using conda:
$ conda create -n xsimlab python attrs xarray dask zarr numpy pip -c conda-forge $ source activate xsimlab
Then you can clone the xarray-simlab git repository and install it
using pip locally:
$ git clone https://github.com/xarray-contrib/xarray-simlab $ cd xarray-simlab $ pip install .
For development purpose, use the following command:
$ pip install -e .
To make sure that xarray-simlab is correctly installed, try to import it by running this line:
$ python -c "import xsimlab"