Skip to content

Installation

evosax requires Python 3.10 or later and a working JAX installation. Install JAX first if you need GPU or TPU support, for example on an NVIDIA GPU:

pip install -U "jax[cuda]"

Then install evosax from PyPI:

pip install evosax

To install the latest development version:

pip install git+https://github.com/RobertTLange/evosax.git@main

Optional dependencies

The reinforcement learning and vision problems and the example notebooks need additional packages (Gymnax, Brax, PyTorch and torchvision). Install them with the examples extra:

pip install "evosax[examples]"

Optax, which provides the optimizers and schedules accepted by many algorithms, is installed together with evosax.