Install on Linux

BornAgain is distributed on PyPI as wheels for supported CPython versions on 64-bit x86 Linux.

Requirements

Prepare an isolated Python environment before installing BornAgain.

Install the wheel

Replace path/to/venv below with the path to the virtual environment.

Without activating the environment

With uv, select the environment’s Python interpreter explicitly:

uv pip install --python path/to/venv/bin/python bornagain

If the environment provides pip, use its Python interpreter directly:

path/to/venv/bin/python -m pip install bornagain
With an activated environment

Activate the environment:

source path/to/venv/bin/activate

Then install BornAgain with uv:

uv pip install bornagain

or with the environment’s pip:

pip install bornagain

For conda, activate the environment and run pip install bornagain.

The package manager selects a wheel compatible with the Python interpreter and Linux system, then installs its Python dependencies automatically.