BornAgain is distributed on PyPI as wheels for supported 64-bit CPython versions on 64-bit Windows.
Prepare an isolated Python environment before installing BornAgain. Make sure that it uses 64-bit Python.
Replace path\to\venv below with the path to the virtual environment.
With uv, select the environment’s Python interpreter explicitly:
uv pip install --python path\to\venv\Scripts\python.exe bornagain
If the environment provides pip, use its Python interpreter directly:
path\to\venv\Scripts\python.exe -m pip install bornagain
Activate the environment:
path\to\venv\Scripts\Activate.ps1
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 the compatible wheel and installs its Python dependencies automatically. If no compatible wheel exists for the active Python interpreter, it reports that no matching distribution is available.