Skip to content
Back to skills

Sionna Install

ASecurity

Use for installing, verifying, or troubleshooting Sionna PHY, SYS, or RT. Covers PyPI and source installs, dependencies, Python environments, and CPU or CUDA setups.

  • 4,297 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentspythongoshellgitapibackenddocumentation

Works with

  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 5 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add NVIDIA/skills --skill sionna-install --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sionna Install?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sionna Install
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nvidia-sionna-install/badge)](https://www.skillsdirectory.com/skills/nvidia-sionna-install)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sionna-install
description: Use for installing, verifying, or troubleshooting Sionna PHY, SYS, or RT. Covers PyPI and source installs, dependencies, Python environments, and CPU or CUDA setups.
metadata:
  author: "The Sionna Team <sionna@nvidia.com>"
  tags: [sionna, python, installation, wireless]
---

# Install Sionna

## Purpose

Set up a Python environment for wireless simulation or ray tracing and verify that the requested Sionna components work on the target machine.

## Inputs

Use the user's explicit choices first. Fill in unspecified values from the project manifest, lockfile, and detected environment. If the request conflicts with project constraints, surface the conflict before changing the environment. For a bare request such as “install Sionna,” ask which components the user needs and whether they need CUDA or CPU execution. Offer the full PyPI release and CPU execution as the default for a fresh setup. Bundle any remaining questions whose answers change the install.

**Required inputs** to resolve before selecting an install command

- **Components.** Full Sionna (PHY, SYS, and RT), PHY and SYS only, or RT only?
- **Backend.** CPU or NVIDIA GPU (CUDA)? For a remote host or container, check that target's hardware and runtime.

**Optional inputs** that override the defaults

- **Version and source.** Use the current PyPI release, a pinned version for an existing project, or the source checkout? Select source when the user requests it or the project's manifest or lockfile specifies a local Sionna dependency.
- **Environment.** Use the project's existing environment, a new isolated environment, or an explicitly requested interpreter?
- **Optional extras.** If the user mentions building docs or running tests, include `[doc]` or `[test]` as appropriate. Ask which extras they need if they request a development setup without specifying what they plan to run.

## Prerequisites

- Confirm shell access to the target host or container before executing commands. If access is unavailable, give the user the commands to run on the target.
- Before fetching packages, confirm the target can reach its configured package index, such as PyPI or a private mirror. For an offline install, check that the local package source contains the selected distribution and its dependencies.
- Check the target Python version, executable, OS, and architecture. Run this with the candidate interpreter.

  ```sh
  python -c 'import platform, sys; print(sys.executable); print(sys.version); print(platform.system(), platform.machine()); print(sys.prefix, sys.base_prefix)'
  ```

- Check `Requires-Python` and the requirements of any selected extras before choosing an interpreter. For `[doc]`, find the Sphinx constraint in the checkout's `[project.optional-dependencies].doc` or the selected wheel's `Requires-Dist` metadata, then check `Requires-Python` for the matching Sphinx release in the package index. For example, the Sionna 2.2.0 source package requires Python 3.11+ and PyTorch 2.9.1+. Its `[doc]` extra pins Sphinx 9.1.0, which requires Python 3.12+. Older Sionna projects may require TensorFlow. Let the package manager resolve ordinary Python dependencies and honor project pins. [Sphinx 9.1.0 metadata](https://pypi.org/project/Sphinx/9.1.0/)
- For CUDA, check that `nvidia-smi` is available and runs on the target. Use it to check GPU visibility and the driver. If it is missing in a container, check the driver on the host and confirm GPU passthrough to the container. Verify that a compatible framework build is available for the selected Python and platform. Use the framework's official install selector when a specific build or package index is needed.
- For source installs, check `git --version`, the checkout revision, and the package metadata. If using bundled RT source, confirm its path and URL in `.gitmodules` and check the submodule status.

### System dependencies

Check dependencies on the target host or inside the target container. On Linux, read `/etc/os-release` to identify the distribution and release. Use its package manager and install only the missing prerequisites for the selected workload. In a managed image, use the project's image build or ask the image owner to add them if the target cannot be modified.

Before running any `sudo` command, obtain explicit user confirmation for the exact command and target unless the user has already authorized both. If confirmation is unavailable, give the user or administrator the exact command to run and report which step is blocked. Continue any independent setup steps, then rerun the dependency check before resuming the blocked step.

- **Documentation (`[doc]`).** The Python extra installs Sphinx and its extensions. The documentation build also needs system-installed Pandoc and GNU Make. Check `pandoc --version` and `make --version` (or `gmake --version`). On Debian or Ubuntu, install the missing tools with `sudo apt-get install pandoc make`, omitting tools already available. On macOS with Homebrew, use `brew install pandoc` and, if GNU Make is missing, `brew install make` and run it as `gmake`. Use the target distribution's equivalent packages elsewhere. [Homebrew Pandoc](https://formulae.brew.sh/formula/pandoc) · [Homebrew Make](https://formulae.brew.sh/formula/make)
- **Tests (`[test]`).** The Python extra installs pytest and its plugins. Check system prerequisites for the selected tests, such as the LLVM library for CPU RT tests.
- **CPU ray tracing.** Mitsuba uses Dr.Jit's LLVM backend for CPU ray tracing. Check the LLVM version supported by the selected Dr.Jit release. On Debian or Ubuntu, list available runtime packages with `apt-cache search '^libllvm[0-9]+'`. If the library is missing, set `LLVM_PACKAGE` to the compatible package name and use `sudo apt-get install "$LLVM_PACKAGE"` under the confirmation rule above. On other Linux distributions, look up the package providing the compatible LLVM shared library. On macOS with Homebrew, use `brew install llvm` or a compatible versioned LLVM formula. If Dr.Jit cannot locate an installed library, set `DRJIT_LIBLLVM_PATH` to the absolute path to the verified shared library file before starting Python. On macOS, locate it under the installed formula's prefix using `brew --prefix`. [Dr.Jit backend requirements](https://drjit.readthedocs.io/en/latest/what.html#backends) · [Dr.Jit library path](https://github.com/mitsuba-renderer/mitsuba3/discussions/804)

## Instructions

### Select or create the Python environment

Reuse an explicit target or a compatible project-managed environment. Identify the package manager from project setup instructions and matching files. Look for `uv.lock` for uv, `poetry.lock` or `[tool.poetry]` for Poetry, and a `pip-compile` header or documented `pip-sync` workflow for pip-tools. Use the corresponding project workflow when it governs that environment. A plain `requirements.txt` can be installed with pip when the project documents that workflow.

If there is no suitable environment and the user has not explicitly requested a system or container interpreter, create a venv with a compatible Python. Use a different path if `.venv` already exists and is unsuitable. In a POSIX shell on Linux or macOS, run:

```sh
python -m venv .venv
SIONNA_PYTHON="$PWD/.venv/bin/python"
"$SIONNA_PYTHON" -m pip --version
```

Here `python` is the compatible interpreter selected above. For an existing environment, set `SIONNA_PYTHON` to the absolute path to its Python executable. Use that executable throughout, substituting its path directly when running commands in separate shells. If an explicitly requested interpreter is externally managed, explain the supported environment options before switching targets.

#### Switching distributions

Sionna distributions can share files under the `sionna` package. Prefer a fresh environment for a switch. If the user requests a switch in an existing pip environment, inspect the installed distributions, dependents, and file lists with `"$SIONNA_PYTHON" -m pip show -f sionna sionna-no-rt sionna-rt`. Confirm the replacement and any package needed to restore shared files are available before uninstalling anything. Surface dependency conflicts with other installed packages before changing the environment.

Uninstall the conflicting distribution first. For example, to switch from PHY/SYS without RT to full Sionna, run `"$SIONNA_PYTHON" -m pip uninstall sionna-no-rt`. Remove `sionna-rt` only if the requested setup excludes RT and no remaining package needs it. Reinstall any other retained distribution whose shared files the uninstall removed, using its original version and source. Install the replacement last, reinstalling it if it was already present. Follow the dependency and import checks below after the switch.

### Run the installation

Run the command for the selected path. If a managed environment uses another installer, use its equivalent commands with the same package and version.

| PyPI install | Command |
| --- | --- |
| Full Sionna | `"$SIONNA_PYTHON" -m pip install sionna` |
| PHY and SYS only | `"$SIONNA_PYTHON" -m pip install sionna-no-rt` |
| RT only | `"$SIONNA_PYTHON" -m pip install sionna-rt` |

For a pin, replace the package argument with a quoted `PACKAGE==VERSION` requirement after checking availability for that distribution. When a specific CPU or CUDA framework build is needed, install it in the same environment first using its official command, then install Sionna.

For source, follow the checkout's `README.md` and packaging metadata. Run the following at the repository root when the RT submodule path is `ext/sionna-rt`. Substitute the recorded path if the checkout uses another location.

```sh
git submodule update --init --recursive -- ext/sionna-rt &&
"$SIONNA_PYTHON" -m pip install ./ext/sionna-rt .
```

For RT-only source installs, install the Sionna RT checkout itself with `"$SIONNA_PYTHON" -m pip install .` from its root. For PHY and SYS from source without RT, use the checkout's no-RT build when it provides one. Otherwise, offer a compatible PyPI `sionna-no-rt` release and confirm before switching sources.

If the package manager's install command fails, capture the error and retry once after a concrete fix. Depending on the error, correct the package name or an erroneous pin, select a compatible interpreter, restore access to the configured package index, or install a missing system dependency. Preserve the requested version and package source unless the user approves a change. If there is no actionable fix or the retry fails, stop that install path and report the specific blocker.

#### Optional documentation and test extras

Check that the selected distribution or checkout declares the extras. For a source install, include them in the initial install command. Select `'.[doc]'`, `'.[test]'`, or `'.[doc,test]'` in place of the final `.`. Keep the local RT argument when the install includes that source. For example, after initializing the RT submodule, install both extras from the repository root with:

```sh
"$SIONNA_PYTHON" -m pip install ./ext/sionna-rt '.[doc,test]'
```

For PyPI, use the extra requirement in the initial command, for example `"$SIONNA_PYTHON" -m pip install 'sionna[doc,test]'`. Place any version pin after the brackets. When adding extras to an existing PyPI install, pin the installed release unless the user requested a version change.

### Verify the installation

Use the installation's interpreter. With pip, run `"$SIONNA_PYTHON" -m pip check` and the metadata command for the selected component set. Use the project manager's equivalents where applicable. Run the imports for the selected components in the same environment.

| Install | Package metadata | Imports |
| --- | --- | --- |
| Full Sionna | `"$SIONNA_PYTHON" -m pip show sionna sionna-rt` | `"$SIONNA_PYTHON" -c 'import sionna.phy, sionna.sys, sionna.rt'` |
| PHY and SYS only | `"$SIONNA_PYTHON" -m pip show sionna-no-rt` | `"$SIONNA_PYTHON" -c 'import sionna.phy, sionna.sys'` |
| RT only | `"$SIONNA_PYTHON" -m pip show sionna-rt` | `"$SIONNA_PYTHON" -c 'import sionna.rt'` |

- **PyTorch CUDA for PHY/SYS.** For PyTorch-based PHY/SYS installations, run `"$SIONNA_PYTHON" -c 'import torch; raise SystemExit(0 if torch.cuda.is_available() else 1)'`.
- **TensorFlow CUDA.** For a TensorFlow-based Sionna release, run `"$SIONNA_PYTHON" -c 'import tensorflow as tf; raise SystemExit(0 if tf.test.is_built_with_cuda() and tf.config.list_physical_devices("GPU") else 1)'`. [TensorFlow GPU verification](https://www.tensorflow.org/install/pip)
- **Dr.Jit CUDA for RT.** When the selected Dr.Jit release exposes the API, run `"$SIONNA_PYTHON" -c 'import drjit as dr; raise SystemExit(0 if dr.has_backend(dr.JitBackend.CUDA) else 1)'`. Run the RT smoke test below with the CUDA variant. [Dr.Jit backend API](https://drjit.readthedocs.io/en/latest/reference.html#drjit.has_backend)
- **CPU RT.** Check installed versions with `"$SIONNA_PYTHON" -m pip show sionna-rt mitsuba drjit`. Use the selected RT release's dependency metadata for the allowed Mitsuba and Dr.Jit versions, including any exact pins. For example, Sionna RT 2.2.0 pins Mitsuba 3.9.1 and Dr.Jit 1.5.0. Use the matching Dr.Jit release's LLVM requirements. When that release exposes the API, run `"$SIONNA_PYTHON" -c 'import drjit as dr; print(dr.__version__); raise SystemExit(0 if dr.has_backend(dr.JitBackend.LLVM) else 1)'`, then run the RT smoke test below.
- **Documentation.** Check `"$SIONNA_PYTHON" -m sphinx --version` and the system tools above. For a requested docs build, use a matching source checkout and initialize the RT submodule if the docs tree references it. For a virtual environment, run `PATH="${SIONNA_PYTHON%/*}:$PATH" make -C doc html` from the repository root, using `gmake` if needed. This lets Make resolve both `python3` and `sphinx-build` from the selected environment. For other managed environments, run Make through the project's environment runner.
- **Tests.** Check `"$SIONNA_PYTHON" -m pytest --version` and follow the checkout's test instructions if the user requested a test run.

#### RT smoke test

For Sionna RT 2.2, solve a line-of-sight path between two radios in an empty scene. Select `llvm_ad_mono_polarized` for CPU or `cuda_ad_mono_polarized` for CUDA. For other releases, use the equivalent variant and path solver documented for that release.

```sh
"$SIONNA_PYTHON" - llvm_ad_mono_polarized <<'PY'
import sys

import mitsuba as mi
import numpy as np

mi.set_variant(sys.argv[1])
from sionna.rt import PathSolver, PlanarArray, Receiver, Transmitter, load_scene

scene = load_scene()
scene.tx_array = scene.rx_array = PlanarArray(
    num_rows=1, num_cols=1, pattern="iso", polarization="V"
)
scene.add(Transmitter(name="tx", position=(0, 0, 0)))
scene.add(Receiver(name="rx", position=(1, 0, 0)))
paths = PathSolver()(scene, max_depth=0)
if not np.asarray(paths.valid).any():
    raise SystemExit("No valid line-of-sight path")
print(f"Computed a valid line-of-sight path with {mi.variant()}")
PY
```

Report the installed distributions and versions, the interpreter path, and the checks that passed. Retry a failed check only after a concrete fix. The entire verification phase shares one budget of three retries across all checks. Stop and report the specific blocker if there is no actionable fix, or if verification is still failing after the third retry.

## Limitations

Wheel and backend availability depend on the selected release, Python version, OS, and architecture. A package install can succeed even when the requested CUDA or RT backend is unavailable.

## Troubleshooting

| Symptom | Likely cause | Action |
| --- | --- | --- |
| `[doc]` fails to resolve on Python 3.11 | The selected Sphinx pin requires a newer Python | Follow [Prerequisites](#prerequisites) to check the Sphinx constraint and select a compatible interpreter. |
| RT submodule initialization fails | The path or URL differs, or the remote is unreachable | Check `.gitmodules`, the effective URL, and network or repository access. If the recorded source is unavailable, offer a compatible PyPI RT release and confirm before switching. |
| Dr.Jit reports that the LLVM shared library is missing | LLVM is absent or outside Dr.Jit's search path | Follow [System dependencies](#system-dependencies), then rerun the CPU RT check. |
| `pip check` reports a Mitsuba or Dr.Jit dependency conflict | The installed versions differ from the selected RT release's requirements | Restore the compatible versions in the selected environment, then rerun `pip check` and the backend check. |
| `torch.cuda.is_available()` returns false | The GPU is hidden on the target or PyTorch lacks a compatible CUDA build | Recheck `nvidia-smi` on the target and confirm the installed PyTorch build. |

## Examples

- “Install Sionna.”
- “Install Sionna PHY and SYS from PyPI for CPU in a new virtual environment.”
- “Install Sionna from this checkout with the documentation and test extras.”

Files in this skill

  • BENCHMARK.md9.3 KB
  • SKILL.md16.6 KB
  • evals/evals.json4 KB
  • skill-card.md7.7 KB
  • skill.oms.sig4.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.