Skip to content

Install

Base Install Limitations

Base install scope: The base install includes only core Earth2Studio APIs. Most models, data sources, examples, and workflows require an optional dependency group selected below.

GPU dependency compatibility: GPU-dependent model dependencies can be sensitive to the PyTorch and CUDA versions in your environment.

Prerequisites

  • PyTorch: See the PyTorch install guide and make sure PyTorch is installed correctly on your system first.
  • Python environment: Initialize an appropriate Python environment. Python 3.13 is the recommended version.
  • Package manager: uv is recommended, but pip is also supported.

Install Selector

GPU Dependency Wheels

FlashAttention and NATTEN can take a long time to build. Before building from source, check for prebuilt wheels compatible with the model's requirements, Python ABI, OS/architecture, PyTorch build, CUDA build, and GPU capability. Use torch.__version__ and torch.version.cuda to identify the Torch build; the CUDA version shown by nvidia-smi alone is not sufficient.

  • FlashAttention: check the Astral GPU indexes and uv's extension guide. Select a matching wheel, use a named [[tool.uv.index]] with explicit = true, and map flash-attn to that index in [tool.uv.sources].
  • NATTEN: check the installation guide, including older builds, and prebuilt wheels. Pin the compatible build including its +torch...cu... suffix when applicable and use --find-links https://whl.natten.org with uv add or pip install. Persist find-links in [tool.uv] for uv projects. Models requiring libnatten need that backend, not just an importable NATTEN package; check natten.HAS_LIBNATTEN when supported by the installed version.

Configure these sources in your own project; Earth2Studio's uv settings are not inherited when installed as a dependency. Preserve existing Torch pins unless you choose a compatible environment change. If no matching wheel exists, follow the dependency's source-build requirements. Custom/NGC Torch builds may require compilation rather than an official-release wheel.

Verify Installation

python -c "import earth2studio; print(earth2studio.__version__)"

If you installed with uv and want to run inside the uv project:

uv run python -c "import earth2studio; print(earth2studio.__version__)"

Environments

For the best experience, create a fresh environment with uv, Docker, or another environment manager. For developer environments, refer to the Developer Overview.

uv Project

Using uv is the recommended way to set up a local Python environment for Earth2Studio. Assuming uv is installed, use the following commands:

mkdir earth2studio-project && cd earth2studio-project
uv init --python=3.13
uv add "earth2studio @ git+https://github.com/NVIDIA/earth2studio.git@0.20.0"

Docker Container

For a Docker environment, the recommended process is to use uv inside a container. The NVIDIA PyTorch container typically provides a good base with many dependencies already installed and optimized for NVIDIA hardware.

docker run -it -t nvcr.io/nvidia/pytorch:26.04-py3

apt-get update && apt-get install -y git make curl cmake python3-dev \
    libeccodes-tools libeccodes-dev
unset PIP_CONSTRAINT
curl -LsSf https://astral.sh/uv/install.sh | sh && source $HOME/.local/bin/env
uv pip install --system --break-system-packages \
    "earth2studio @ git+https://github.com/NVIDIA/earth2studio.git@0.20.0"

Extra Dependencies

Add extras to the uv pip install command in the same way you would for pip:

uv pip install --system --break-system-packages \
    "earth2studio[aifs,data] @ git+https://github.com/NVIDIA/earth2studio.git@0.20.0"
Earth2Studio in Docker

Some models and dependencies have specific system requirements, such as CUDA versions, that may require a different container. If you are comfortable with Docker, refer to the testing Dockerfile as a reference for a general-purpose Earth2Studio image.

Conda Environment

It is no longer recommended to use conda environment managers for Earth2Studio when uv is available. If conda is required for your system, use it only to create the Python environment and install Earth2Studio with standard Python tooling.

conda create -n earth2studio python=3.13
conda activate earth2studio
pip install earth2studio

System Recommendations

Software

Earth2Studio does not have specific software version requirements. The following versions are recommended to closely match development and automation environments:

  • OS: Ubuntu 24.04 LTS
  • Python Version: 3.13
  • CUDA Version: 13.0

Hardware

Earth2Studio does not have specific hardware requirements. If PyTorch can run, many features of Earth2Studio should run as well. Most models do require a GPU with sufficient memory and compute capability.

GPU GPU Memory (GB) Precision # of GPUs Disk Space (GB)
NVIDIA GPU with compute capability >= 8.9 >=40 FP32 1 128

Configuration

Earth2Studio uses a few environment variables to configure package behavior:

  • EARTH2STUDIO_CACHE: General cache location for models and cached data. Defaults to ~/.cache/earth2studio.
  • EARTH2STUDIO_DATA_CACHE: Cache location for data sources. If set, this overrides EARTH2STUDIO_CACHE for data source caching.
  • EARTH2STUDIO_MODEL_CACHE: Cache location for model packages. If set, this overrides EARTH2STUDIO_CACHE for model checkpoint caching.
  • EARTH2STUDIO_PACKAGE_TIMEOUT: Maximum number of seconds for a model package download from a remote store such as NGC, Hugging Face, or S3.