Installation#
rapids-singlecell requires Python 3.13 or newer and an NVIDIA GPU.
Conda#
The easiest way to install rapids-singlecell is to use one of the yaml files provided in the conda folder. These yaml files install everything needed to run the example notebooks and get you started. Download the matching file or run the commands below from a repository checkout.
conda env create -f conda/rsc_rapids_26.10_cuda13.yml
# or
mamba env create -f conda/rsc_rapids_26.10_cuda13.yml
Python 3.14, CUDA 13.3
conda env create -f conda/rsc_rapids_26.10_cuda12.yml
# or
mamba env create -f conda/rsc_rapids_26.10_cuda12.yml
Python 3.14, CUDA 12.9
Activate the environment before running Python or Jupyter:
conda activate rapids_singlecell
Note
NVIDIA CUDA-X Data Science (formerly RAPIDS) supports both channel_priority: strict and channel_priority: flexible.
See the NVIDIA installation guide.
PyPI#
Starting with version 0.15.0, rapids-singlecell ships precompiled CUDA kernels via nanobind. Prebuilt wheels are available for x86_64 and aarch64 Linux for both CUDA 12 and CUDA 13.
CUDA version compatibility#
The prebuilt wheels support the following CUDA runtime versions:
Wheel |
Compiled with |
Runtime support |
GPU architectures |
|---|---|---|---|
|
Source distribution |
Any supported CUDA |
Compiles for your local GPU architecture |
|
CUDA 12.2 |
CUDA 12.2–12.9+ |
Turing through Hopper (native), Blackwell (via PTX JIT) |
|
CUDA 13.0 |
CUDA 13.0+ |
Turing through Blackwell (precompiled cubins) |
The CUDA 12 wheels are compiled with CUDA 12.2.
Check the CUDA-X Data Science support matrix for the CUDA runtime and driver requirements of your dependency versions.
Blackwell GPUs (CC 100, 103, and 120) are supported via PTX just-in-time compilation from the sm_90 PTX included in the wheel.
The CUDA 13 wheels include compatible Blackwell cubins, so no PTX JIT is needed.
Prebuilt wheels (recommended)#
Install the wheel matching your CUDA version:
[uv] pip install rapids-singlecell-cu13
[uv] pip install rapids-singlecell-cu12
This installs the precompiled CUDA kernels but not the CUDA-X Data Science stack (cupy, cuml, cudf, etc.). This is the recommended approach for conda/mamba users who already have CUDA-X Data Science installed in their environment.
Note
The CUDA-X Data Science stack is required, not optional: rapids_singlecell imports
cuml/cupy at the top of its package __init__. These are
provided by an existing CUDA-X Data Science conda/mamba environment or by the
[rapids]/[rapids-cuXX] extra below. Installing the bare
rapids-singlecell-cuXX wheel into an environment without CUDA-X Data Science raises an
ImportError on import rapids_singlecell itself — not merely when a kernel is
first used.
Prebuilt wheels with CUDA-X Data Science dependencies#
To also install the CUDA-X Data Science stack via pip, use the rapids extra.
This requires the --extra-index-url flag for the NVIDIA PyPI index:
[uv] pip install 'rapids-singlecell-cu13[rapids]' --extra-index-url=https://pypi.nvidia.com
[uv] pip install 'rapids-singlecell-cu12[rapids]' --extra-index-url=https://pypi.nvidia.com
Source distribution (self-compile)#
The rapids-singlecell package on PyPI contains the source distribution.
Building from source requires a CUDA toolkit and a C++ compiler:
[uv] pip install rapids-singlecell
The CUDA kernels will be compiled during installation for your local GPU architecture.
You can select CUDA-X Data Science dependencies with the rapids-cu12 or rapids-cu13 extras:
[uv] pip install 'rapids-singlecell[rapids-cu12]' --extra-index-url=https://pypi.nvidia.com
Note
Building from source requires the CUDA toolkit (nvcc) and CMake >= 3.24 to be available in your environment. The nvcc/CUDAToolkit found during the build should match the CUDA major runtime version used by CUDA-X Data Science and CuPy in or linked to the environment.
No CUDA-X Data Science C++ package is needed at build time, so the default isolated build works
on both CUDA 12 and CUDA 13 without --no-build-isolation.
Install from GitHub#
To install the latest development version directly from GitHub:
[uv] pip install "rapids-singlecell @ git+https://github.com/scverse/rapids-singlecell.git"
Or from a specific branch or tag:
[uv] pip install "rapids-singlecell @ git+https://github.com/scverse/rapids-singlecell.git@main"
This compiles the CUDA kernels during installation. By default, kernels are compiled for your local GPU architecture only (native).
To compile for different or multiple architectures, pass the CUDA architectures through CMAKE_ARGS:
# Compile for a specific architecture (e.g., Ampere)
CMAKE_ARGS="-DCMAKE_CUDA_ARCHITECTURES=80-real" [uv] pip install "rapids-singlecell @ git+https://github.com/scverse/rapids-singlecell.git"
# Compile for multiple architectures
CMAKE_ARGS="-DCMAKE_CUDA_ARCHITECTURES=80-real;86-real;89-real;90-real" [uv] pip install "rapids-singlecell @ git+https://github.com/scverse/rapids-singlecell.git"
Common architecture codes:
Code |
GPU Generation |
Examples |
|---|---|---|
|
Turing |
T4, RTX 2080 |
|
Ampere |
A100, A30 |
|
Ampere |
A10, RTX 3090 |
|
Ada Lovelace |
L4, L40, RTX 4090 |
|
Hopper |
H100, H200 |
|
Blackwell |
B200, GB200 |
|
Blackwell |
B300, GB300 |
|
Blackwell |
RTX PRO 6000 |
Tip
Use native (the default) for the fastest compilation when you only need to run on your local GPU.
Use multiple architectures when building portable binaries (e.g., for a shared cluster with mixed GPU types).
The -real suffix generates device code only (no PTX fallback), which reduces binary size.
Agent skill#
Install the version-matched analysis skill for Claude Code, Codex, and other agents, and check the GPU environment before starting.
See the agent skill guide for installation, kernel checks, and usage.
Docker#
Note
The project-provided CUDA 12 and CUDA 13 Docker images and their dependency images will be deprecated in a future release. Container builds and publication continue for now; no deprecation date has been set.
Please plan to migrate to the Conda environments
or the prebuilt wheels with CUDA-X Data Science dependencies.
The rapids-singlecell-cu12 and rapids-singlecell-cu13 Python packages remain supported;
the planned deprecation only applies to the project-provided container images.
Docker and Apptainer usage#
Ensure that Docker supports the NVIDIA Container Toolkit. Then, pull the Docker image matching your CUDA version:
docker pull ghcr.io/scverse/rapids-singlecell-cu13:latest
docker pull ghcr.io/scverse/rapids-singlecell-cu12:latest
To open an interactive shell in the Docker container, use the following command:
docker run --rm -it --gpus all ghcr.io/scverse/rapids-singlecell-cu13:latest bash
docker run --rm -it --gpus all ghcr.io/scverse/rapids-singlecell-cu12:latest bash
The Docker containers can also be used with Apptainer (or Singularity) on an HPC system.
First pull the container and wrap it in a .sif file:
apptainer pull rsc.sif docker://ghcr.io/scverse/rapids-singlecell-cu13:latest
apptainer pull rsc.sif docker://ghcr.io/scverse/rapids-singlecell-cu12:latest
Then run the following command to execute the container:
apptainer run --nv rsc.sif
Running on HPC systems with SLURM#
When running on HPC systems via SLURM, conda must be explicitly activated before running Python scripts. Use apptainer exec instead of apptainer run:
apptainer exec --nv \
--bind /path/to/your/data:/path/to/your/data \
rsc.sif \
bash -c "source /opt/conda/etc/profile.d/conda.sh && conda activate base && python"
Without sourcing conda first, CONDA_PREFIX will be unset and CuPy will fail to locate the CUDA libraries inside the container, resulting in a TypeError: expected str, bytes or os.PathLike object, not NoneType error.
System requirements#
Most computations run on the GPU. See the Memory Management page for hardware guidance, managed memory, and known limits: