Installation
Requirements
The simulator is extensively tested on Ubuntu 24.04. However, other platforms should also work out of the box with the PyPI install. Further, you need an environment with:
- Python >= 3.11, < 3.14
- MuJoCo (follow the mujoco installation instructions for your platform)
- (Optional) pixi >= 0.6.1 (required for the provided developer environment)
Quick install (PyPI)
Recommended for users who only want to use Crazyflow:
Developer install (recommended for contributors)
Use pixi to create a reproducible development environment that also installs submodules in editable mode. This requires some 64 bit linux distribution to work.
-
Clone the repo (with submodules)
-
Enter the pixi shell (pixi >= 0.6.1 required)
Inside the pixi shell you will have crazyflow, drone-models and drone-controllers installed in editable mode.
Install from source (manual / without pixi)
If you prefer not to use pixi, install the packages manually in editable mode:
pip install -e . # Install crazyflow
pip install -e ./submodules/drone-models
pip install -e ./submodules/drone-controllers
Optional extras (GPU / benchmarking)
- GPU (JAX with CUDA): three ways to enable the gpu extras
- Start the pixi gpu environment:
- Install local editable package with gpu extras:
-
Install from PyPI with gpu extras:
-
Benchmarking / plotting:
- Use the dedicated pixi benchmarking environment:
- Or install the benchmark extras locally:
- Or install from PyPI with extras:
Verify installation
A quick smoke test — run one of the examples (offscreen or with rendering enabled depending on your platform):
Run the test suite (recommended via pixi):
Or activate the test environment and run pytest directly:See the Examples page for more runnable scripts.
Building and serving the docs locally
Recommended: use pixi to run the configured docs tasks: