Backend first, then Keras
Getting started with Keras 3 is a two-step install, and the order matters. Keras itself is pure Python — no compiled extensions, and it doesn't pull in CUDA. The backend brings the GPU stack. So install your backend first (TensorFlow, PyTorch, or JAX), confirm its GPU detection on its own, and only then layer Keras on top. That separation is exactly why Keras 3 stays small and installs in seconds (first Code block).
Once it's installed, set your backend before the first import keras — the KERAS_BACKEND environment variable is the switch (second Code block).