Install with conda#

Use this route if you have conda, or want it to manage your Python version. Open a terminal with conda available; on Windows, use Anaconda Prompt.

Create an environment and install#

conda create -n autolens python=3.12 pip
conda activate autolens
python -m pip install --upgrade pip
python -m pip install autolens

Run conda activate autolens each time you open a new terminal to use this environment.

For GPU support, follow GPU setup in the same environment.

Check the installation#

python -m pip check
python -c "import autolens; print(autolens.__version__)"

pip check should report no broken requirements, and the second command should print the installed version. Resolve errors using Troubleshooting before continuing.

Next, download the workspace and run an example.

Workspace#

Download the workspace and run your first example.

Numba#

See Numba and optional CPU acceleration.

Optional#

See interferometer packages.

JAX & GPU#

See JAX and GPU setup.