Prepare a Python environment

BornAgain requires Python 3.10 or newer. Use an isolated virtual environment so that BornAgain and its dependencies do not modify the system Python installation.

uv works on Linux, Windows, and macOS and manages Python automatically when needed.

conda

pyenv (Linux and macOS)

pyenv-win (Windows)

Vanilla Python

Use one approach for an environment; combining several environment managers is usually unnecessary. The BornAgain wheel declares its runtime dependencies, so they are installed automatically with BornAgain.