Installation with condaΒΆ

Installation via a conda environment circumvents compatibility issues when installing certain libraries. This guide assumes you have a working installation of conda.

First, create a conda environment (we name this autolens to signify it is for the PyAutoLens install):

The command below creates this environment with some of the bigger package requirements, the rest will be installed with PyAutoFit via pip:

conda create -n autolens astropy numba numpy scikit-image scikit-learn scipy

Activate the conda environment (you will have to do this every time you want to run PyAutoLens):

conda activate autolens

We upgrade pip to ensure certain libraries install:

pip install --upgrade pip

The latest version of PyAutoLens is installed via pip as follows (specifying the version as shown below ensures the installation has clean dependencies, and we assume numba and llvmlite were successfully installed when creating the conda environment above, see here for more details):

pip install autolens==2021.10.14.1 --ignore-installed numba llvmlite

Next, clone the autolens workspace (the line --depth 1 clones only the most recent branch on the autolens_workspace, reducing the download size):

cd /path/on/your/computer/you/want/to/put/the/autolens_workspace
git clone https://github.com/Jammy2211/autolens_workspace --depth 1
cd autolens_workspace

Run the welcome.py script to get started!

python3 welcome.py