A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.xarray.dev/en/stable/getting-started-guide/installing.html below:

Installation

Installation# Required dependencies# Optional dependencies#

Note

If you are using pip to install xarray, optional dependencies can be installed by specifying extras. Instructions for both pip and conda are given below.

For netCDF and IO# For accelerating xarray# For parallel computing# For plotting# Alternative data containers# Minimum dependency versions#

Xarray adopts a rolling policy regarding the minimum supported version of its dependencies:

This means the latest minor (X.Y) version from N months prior. Patch versions (x.y.Z) are not pinned, and only the latest available at the moment of publishing the xarray release is guaranteed to work.

You can see the actual minimum tested versions:

pydata/xarray

Instructions#

Xarray itself is a pure Python package, but its dependencies are not. The easiest way to get everything installed is to use conda. To install xarray with its recommended dependencies using the conda command line tool:

$ conda install -c conda-forge xarray dask netCDF4 bottleneck

If you require other Optional dependencies add them to the line above.

We recommend using the community maintained conda-forge channel, as some of the dependencies are difficult to build. New releases may also appear in conda-forge before being updated in the default channel.

If you don’t use conda, be sure you have the required dependencies (numpy and pandas) installed first. Then, install xarray with pip:

$ python -m pip install xarray

We also maintain other dependency sets for different subsets of functionality:

$ python -m pip install "xarray[io]"        # Install optional dependencies for handling I/O
$ python -m pip install "xarray[accel]"     # Install optional dependencies for accelerating xarray
$ python -m pip install "xarray[parallel]"  # Install optional dependencies for dask arrays
$ python -m pip install "xarray[viz]"       # Install optional dependencies for visualization
$ python -m pip install "xarray[complete]"  # Install all the above

The above commands should install most of the optional dependencies. However, some packages which are either not listed on PyPI or require extra installation steps are excluded. To know which dependencies would be installed, take a look at the [project.optional-dependencies] section in pyproject.toml:

[project.optional-dependencies]
accel = [
  "scipy>=1.13",
  "bottleneck",
  "numbagg>=0.8",
  "numba>=0.59",
  "flox>=0.9",
  "opt_einsum",
]
complete = ["xarray[accel,etc,io,parallel,viz]"]
io = [
  "netCDF4>=1.6.0",
  "h5netcdf",
  "pydap",
  "scipy>=1.13",
  "zarr>=2.18",
  "fsspec",
  "cftime",
  "pooch",
]
etc = ["sparse>=0.15"]
parallel = ["dask[complete]"]
viz = ["cartopy>=0.23", "matplotlib", "nc-time-axis", "seaborn"]
types = [
  "pandas-stubs",
  "scipy-stubs",
  "types-PyYAML",
  "types-Pygments",
  "types-colorama",
  "types-decorator",
  "types-defusedxml",
  "types-docutils",
  "types-networkx",
  "types-pexpect",
  "types-psutil",
  "types-pycurl",
  "types-openpyxl",
  "types-python-dateutil",
  "types-pytz",
  "types-setuptools",
]

[dependency-groups]
dev = [
  "hypothesis",
  "jinja2",
  "mypy",
  "pre-commit",
  "pytest",
  "pytest-cov",
  "pytest-env",
  "pytest-mypy-plugins",
  "pytest-timeout",
  "pytest-xdist",
  "ruff>=0.8.0",
  "sphinx",
  "sphinx_autosummary_accessors",
  "xarray[complete,types]",
]

[project.urls]
Documentation = "https://docs.xarray.dev"
SciPy2015-talk = "https://www.youtube.com/watch?v=X0pAhJgySxk"
homepage = "https://xarray.dev/"
issue-tracker = "https://github.com/pydata/xarray/issues"
source-code = "https://github.com/pydata/xarray"

[project.entry-points."xarray.chunkmanagers"]
dask = "xarray.namedarray.daskmanager:DaskManager"
Development versions#

To install the most recent development version, install from github:

$ python -m pip install git+https://github.com/pydata/xarray.git

or from TestPyPI:

$ python -m pip install --index-url https://test.pypi.org/simple --extra-index-url https://pypi.org/simple --pre xarray
Testing#

To run the test suite after installing xarray, install (via pypi or conda) py.test and run pytest in the root directory of the xarray repository.

Performance Monitoring#

To run these benchmark tests in a local machine, first install

and run asv run  # this will install some conda environments in ./.asv/envs


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4