earth2studio-install
指導如何透過 uv 或 pip 安裝 Earth2Studio、選擇模型擴充套件,以及設定環境。請勿用於編寫推論程式碼、選擇模型…
npx skills add https://github.com/nvidia/earth2studio --skill earth2studio-installEarth2Studio Installation Skill
Never install packages automatically
You MUST NOT install, upgrade, or modify packages on the user's behalf. Provide the exact command; the user runs it. No exceptions.
Forbidden: running pip install, uv pip install, uv add,
uv sync, uv init, uv venv, conda install, apt install, or any package manager.
When a package is needed:
- Identify it
- Provide the exact command
- Explain why it is needed
- Wait for the user to confirm they ran it
Even if the user says "just install it", give the command and require them to execute it themselves.
Purpose
Help users install Earth2Studio and its optional model dependencies for their use case: select a version, add optional extras with uv, set environment variables, and verify the install. Do not write inference code or compose workflows.
Core principle: read the source, do not recall it
Install commands, release refs, extras, and build quirks change every release. Nothing in this skill is authoritative. Before recommending any command, read the sources below and quote from them.
docs/userguide/about/install_options.yml: command templates, release ref, extras, class mappings (api_refs), pre-install steps, and warnings.https://github.com/NVIDIA/earth2studio/releases/latestorgh api repos/NVIDIA/earth2studio/releases/latest: latest stable release and exact tag.docs/userguide/about/install.md: uv project setup, Docker, prerequisites, verification, and environment variables.pyproject.toml:requires-pythonand[project.optional-dependencies].docs/userguide/support/troubleshooting.mdanddocs/userguide/support/faq.md: known failures.
Live pages (note the /main/ segment; URLs without it return 404):
https://nvidia.github.io/earth2studio/main/userguide/about/install/
https://nvidia.github.io/earth2studio/main/userguide/support/troubleshooting/
https://nvidia.github.io/earth2studio/main/userguide/support/faq/
If working in a local clone, read the repo files directly. Otherwise fetch the
raw files from https://github.com/NVIDIA/earth2studio (the main branch, or the
release tag the user wants) or use the live pages. The install page renders its
commands with JavaScript, so prefer install_options.yml when the page looks
incomplete.
Instructions
-
Read the sources above. Check
package.release_refagainst the latest stable GitHub release. Use the verified release tag, not a prerelease or the version of a development checkout. If the lookup is unavailable, label the configured ref as the documented release, not a verified latest release. -
Ask which version they want, unless they already specified one. Present these choices in order, replacing
<version>with the actual release number:Which Earth2Studio version would you like to install?
- Latest release:
<version>(recommended). Best default for most users. - Main branch (second choice). For unreleased features; may be unstable and include breaking changes.
- Older or different version. Which release or tag do you need?
Wait for their choice before giving version-specific install commands. If they ask you to choose, use the latest stable release. For a specific tag, verify it exists. Read the selected tag's install guide and
pyproject.toml(andinstall_options.ymlwhen available) so extras and Python support match that version. For main, read those sources from main. If local sources target a different version, fetch the matching sources rather than mixing releases. - Latest release:
-
Use uv to add Earth2Studio to their Python project. Ask only what is missing (at most 3 initial questions): version choice, existing project, and models or data sources needed. When asking about models, include examples and offer help exploring the package:
Which models or data sources would you like to use—for example, AIFS2, FourCastNet3, AtlasCRPS, or StormScope? If you're unsure, we can use the earth2studio-discover skill to explore the package and suggest models for your use case and hardware.
Treat these names as starting points, not universal recommendations; check availability in the selected version. If the user wants help choosing, invoke
earth2studio-discoverif it is available in their agent. It is a separate skill and may not be installed alongside this one. If unavailable, link to its instructions on GitHub and offer this command for the user to install it:npx skills add https://github.com/NVIDIA/earth2studio --skill earth2studio-discoverAfter discovery, return here with their selected models to map extras and provide installation commands. If they already named models, proceed directly without asking again.
For a new project, follow the guide's "uv Project" setup with Python 3.13 by default:
mkdir earth2studio-project && cd earth2studio-project uv init --python=3.13Then provide
uv addwith the selected version and extras. In an existing project, run it from the project root; do not reinitialize the project or change its Python pin automatically. Check compatibility with the selected release, especially for older versions. Use a different Python version only when required by that release or the user's project. pip is also supported; use it when requested or when the user already has a pip-based workflow. Use Docker when requested or required by their existing workflow. -
Map the models and data sources they want to extras. In
install_options.yml, each entry undercategories[].items[]has anextra(the name to install) andapi_refs(the classes it enables, for exampleearth2studio.models.px.Aurora1p5belongs to theauroraextra). Searchapi_refsfor the class name the user needs. Data sources generally share onedataextra, and perturbation, statistics, and utilities have their own groups. If a class is not listed, check[project.optional-dependencies]inpyproject.tomland the class docstring before guessing. Several extras can go in one command. -
Provide the command(s) built from the
command_templatesand the extras found above. Follow the guide's default uv source:githubfor a release tag,github-mainfor main. Substitute the verified or requested tag into{release_ref}, orpackage.main_refinto{main_ref}. Useuv add, notuv pip install, for uv projects; combine extras asearth2studio[extra1,extra2]. Include the main instability warning even when the user chose main up front. For pip, usecommand_templates.<source>.pipininstall_options.yml, including the matching pip-specificpreinstallsteps. Followdefaults.sources.pip(currentlypypi) for releases; usegithub-mainfor main orgithubfor an explicitly requested Git tag install. For PyPI, pin the selected release with==<version>. Surface anypreinstallsteps (keyed by package manager, and for uv by source, so pick the one matching the command you chose),warnings, ornotesattached to the chosen entries (slow builds such as flash-attn,--no-build-isolation, CUDA-specific packages, large checkpoint downloads, and so on). Do not paraphrase from memory. If dependencies require compilation, mention possible build times and consult Source builds below. -
Wait for the user to run it, then have them verify using the command in
install.md(use theuv runform inside a uv project). -
Mention configuration only when relevant (limited disk, shared filesystem, CI). The environment variables and their meaning are listed in
install.md. -
On failure, follow Troubleshooting below.
Troubleshooting
Start with the selected version's troubleshooting guide and FAQ. Read the actual error and check that PyTorch and CUDA are working before recommending a fix.
Common issues
- Missing optional dependency: check the model's extra and documented pre-install steps.
- Build failures: use the troubleshooting guide for missing Python headers, CMake, or other build prerequisites.
- Import errors or undefined symbols: check the installed dependency versions against the selected release and PyTorch/CUDA build.
Source builds
Some dependencies, such as FlashAttention, NATTEN and Earth2Grid, can take a while to build from source. Check the version recommended by the selected Earth2Studio release before suggesting an alternative build:
- FlashAttention: check the Astral GPU index for that version and a build compatible with the user's environment. Consult uv's extension guide for usage rather than recommending an arbitrary prebuilt version.
- NATTEN: check the installation guide and build listing for the recommended version and its supported PyTorch/CUDA combination, including older builds when needed.
Limitations
- Does not cover runtime errors unrelated to missing dependencies.
- Does not cover model checkpoint downloads (these happen at first use).
- Does not set up data sources beyond selecting the relevant extra.
Ownership and out-of-scope
Owns: package installation, optional-extra selection, environment variable guidance, install verification.
Does not own: writing inference or training code, composing Earth2Studio
workflows, choosing models (use earth2studio-discover), PhysicsNeMo questions.