Install from PyPI
The fastest way to get Basilisk is the prebuilt wheel from PyPI. It includes all standard build options — optical navigation and MuJoCo dynamics — and works on all supported platforms.The prebuilt wheel does not support linking external C++ modules. If you need to link custom C++ code, you must build from source.
Supported platforms
Prebuilt wheels are available for Python 3.9–3.14 on the following platforms:| Platform | Architecture |
|---|---|
| Windows 10/11 | x86_64 |
| macOS 11+ | Apple Silicon (arm64) |
| Linux (manylinux 2.28+) | x86_64, aarch64 |
On unsupported systems or Python versions,
pip will download the source archive (.tar.gz) and build Basilisk locally. This requires a C++ compiler toolchain and standard build tools.Download examples
If you installed Basilisk from PyPI, the example scripts are not included in the wheel. Run the following command to download a copy of all examples into your current directory:examples/ folder in your working directory. Make a copy of the scripts before editing them so you preserve the originals.
Download large data files
To keep the wheel size small, large support data files (e.g., gravity models, ephemeris data) are not bundled. They are fetched automatically on demand viapooch the first time a script needs them.
To download all large data files at once, run:
Docker / containers
Basilisk publishes multi-architecture container images (linux/amd64, linux/arm64) to the GitHub Container Registry:
Build from source
Building from source is required if you want to:- Link external C++ modules into Basilisk
- Exclude unused features to reduce install size
- Customize CMake or Conan build options
macOS
Set up a macOS development environment.
Linux
Set up a Linux development environment.
Windows
Set up a Windows development environment.