Install PyAutoLens#
Use Python 3.12 or later in a separate environment. The guides below use Python 3.12.
Your setup |
Start here |
|---|---|
You use conda, or need it to manage Python |
|
You already have Python installed |
|
You want to edit the library code |
Both the conda and pip routes install autolens from PyPI. A GPU is optional; start with the standard installation, or see GPU setup if you plan to use one.
Prefer to try the software without installing it? Open an example in Google Colab.
Install with help from an AI agent
Paste this into Claude Code, Codex or another AI coding agent:
Help me install PyAutoLens and set up autolens_workspace. Use the current installation guide at https://pyautolens.readthedocs.io/en/latest/installation/overview.html. Check my operating system and Python version, create an isolated environment, verify the installation and help me run the first example. Ask before changing an existing environment or installing system software.
The PyAutoLens AI Assistant can help with the examples once you are set up.
After installing, run your first example.
Dependencies#
The installer resolves the required packages automatically. See optional packages for additions needed by particular workflows.
JAX & GPU#
See JAX and GPU setup.