Manual installation¶
If the automated installer does not work on your system, or if you prefer to control each step, follow the manual procedure below. These steps cover the same ground as the installer script.
Prerequisites
- Tested in CI: Linux x86_64 (Ubuntu) and macOS on Apple Silicon. Intel macOS and Linux ARM64 are not tested; the Linux Miniconda commands below download the x86_64 installer.
- ~20 GB disk space (conda, Julia, reference data, submodules)
- Standard command-line tools:
curl,wget,make - Git with SSH key configured (GitHub SSH setup)
- Internet connection for initial setup and data downloads
- Allow ~60 minutes for a full installation including all submodules
On Windows, install PROTEUS under WSL2. Depending on your system configuration, some steps may differ. If you run into problems, check the Troubleshooting page or contact the developers.
Environment variables
The steps below set each PROTEUS environment variable in the conda environment
proteus with conda env config vars set -n proteus, as install.sh does,
not in a shell start file. Conda sets the variables when it activates the
environment, so each step ends with conda deactivate && conda activate proteus.
1. System pre-configuration¶
Install the required system packages for your platform before proceeding.
Local machine (laptop/desktop): follow the Local machine guide.
Compute cluster: use the dedicated guides:
2. Set up a Python environment¶
Using pixi instead of conda
PROTEUS can also be installed into a pixi environment,
which replaces the conda steps below. See Install with pixi
(experimental). With pixi, skip the conda lines in the steps below
(conda activate, conda deactivate and conda env config vars set); write
each variable instead as an export NAME='value' line to .proteus-env.sh
in the PROTEUS folder, and run source .proteus-env.sh in each new shell,
as Install with pixi describes.
Python 3.12 is required, and is installed via miniconda or miniforge. If you do not have miniconda or miniforge installed yet:
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh
rm ~/miniconda3/miniconda.sh
mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh
rm ~/miniconda3/miniconda.sh
Install miniconda/miniforge in your personal directory
Installing miniconda/miniforge in your personal directory gives you full control over your environment and is recommended even on clusters (see the cluster guides: Kapteyn, Habrok, Snellius, Cambridge IoA).
Then create a conda environment with Python 3.12:
conda create -n proteus python=3.12
conda activate proteus
3. Install Julia¶
Some PROTEUS modules (AGNI, LovePy, Obliqua) are written in Julia. Install via the official installer:
curl -fsSL https://install.julialang.org | sh
PYTHON_JULIAPKG_EXE
below:
juliaup add 1.13
Do not use your package manager
Package managers often install the wrong Julia version. Use only the
official installer. If you previously installed Julia another way,
uninstall the old version first and remove old Julia entries from your
PATH.
Set the Julia environment variable to the binary of Julia 1.13, not to the juliaup launcher:
conda env config vars set -n proteus PYTHON_JULIAPKG_EXE="$(julia +1.13 --startup-file=no -e 'print(joinpath(Sys.BINDIR, "julia"))')"
conda deactivate && conda activate proteus
Give this install its own Julia packages and compile files, so that it shares them with no other install and leaves ~/.julia as it is. Keep the colon at the end: it keeps the compile files that come with Julia and does not add ~/.julia. If you skip this step, the packages go to ~/.julia, shared, and proteus doctor warns:
conda env config vars set -n proteus JULIA_DEPOT_PATH="$CONDA_PREFIX/julia_depot:"
conda deactivate && conda activate proteus
4. Create environment variables and clone PROTEUS¶
The FWL_DATA environment variable points to the folder where PROTEUS stores
reference data. This variable must always be set.
mkdir -p /your/local/path/FWL_DATA
conda env config vars set -n proteus FWL_DATA=/your/local/path/FWL_DATA/
conda deactivate && conda activate proteus
Clone the repository:
git clone git@github.com:FormingWorlds/PROTEUS.git
cd PROTEUS
5. Install SOCRATES (radiative transfer)¶
SOCRATES is a Fortran spectral radiative transfer code used by AGNI and JANUS.
Fortran compiler, NetCDF, and make
SOCRATES requires gfortran (version 9+), the NetCDF Fortran
development libraries, and make. Verify they are available:
which make
which gfortran
which nc-config
which nf-config
nf-config --version
bash tools/get_socrates.sh
Set RAD_DIR to point to the SOCRATES installation:
conda env config vars set -n proteus RAD_DIR="$PWD/socrates/"
conda deactivate && conda activate proteus
6. Install AGNI and FastChem¶
AGNI solves the atmospheric energy balance using Julia and the SOCRATES spectral library. FastChem provides equilibrium chemistry for AGNI. Installation steps are also documented at the AGNI wiki.
Note
This step requires make, unzip, and cmake. Check with:
which make && which unzip && which cmake
git clone git@github.com:nichollsh/AGNI.git
cd AGNI
bash src/get_agni.sh 0
bash src/get_fastchem.sh
cd ../
Use get_agni.sh to keep AGNI and its data files up to date. AGNI must be
available at ./AGNI/ inside your PROTEUS folder (either a symbolic link or
the true location).
Set the FastChem environment variable:
conda env config vars set -n proteus FC_DIR="$PWD/AGNI/fastchem/"
conda deactivate && conda activate proteus
7. Install Python submodules¶
Clone and install each submodule in editable mode. Each command clones the
module at the release tag that matches its minimum version in
pyproject.toml and installs it editable, the same code that install.sh
installs.
# MORS - stellar evolution (https://proteus-framework.org/MORS/)
bash tools/get_python_module.sh MORS
# JANUS - 1D convective atmosphere (https://proteus-framework.org/JANUS/)
bash tools/get_python_module.sh JANUS
# CALLIOPE - volatile outgassing (https://proteus-framework.org/CALLIOPE/)
bash tools/get_python_module.sh CALLIOPE
# ZEPHYRUS - atmospheric escape (https://github.com/FormingWorlds/ZEPHYRUS)
bash tools/get_python_module.sh ZEPHYRUS
# Aragog - interior thermal evolution (https://proteus-framework.org/aragog/)
bash tools/get_aragog.sh
# Zalmoxis - planetary interior structure (https://proteus-framework.org/Zalmoxis/)
bash tools/get_zalmoxis.sh
Aragog integrates with the SUNDIALS CVODE solver by default, so install it
too (this needs the active conda environment); only Aragog on its default
solver_method = "cvode" needs it:
bash tools/get_cvode.sh
Editable checkouts override PyPI versions
fwl-aragog and fwl-zalmoxis are listed as PyPI dependencies in
pyproject.toml as a fallback for users who install PROTEUS without
cloning submodules. The editable sibling checkouts take precedence on
sys.path. Run proteus doctor to confirm which versions are active.
A module folder that is already there is kept
Run again, these commands keep a module folder that is already there,
whatever it holds: they run no git command that changes it, delete or
replace nothing in it, install it as it is and print the commands that
move it to its release tag by hand. The editable install can still
write files of its own into the folder (for example a version file or
an .egg-info folder), and get_vulcan.sh builds fastchem in it. An
empty folder gets a new clone. Pass --force (e.g.
bash tools/get_aragog.sh --force) to delete the folder and clone the
module again.
8. Install PROTEUS¶
python -m pip install -e ".[develop]"
VULCAN, atmodeller, Morrigan, Obliqua and the parameter-inference stack are not part of this
install, and the tests of VULCAN, atmodeller and the inference stack skip without them. To
set up the four modules as bash install.sh does:
bash tools/get_morrigan.sh
bash tools/get_vulcan.sh
bash tools/get_atmodeller.sh
bash tools/get_obliqua.sh
To match what CI runs, which takes atmodeller from PyPI and VULCAN from a fresh clone at its release tag (the fwl-vulcan wheel has no network files; --force replaces an existing VULCAN/ folder):
python -m pip install -e ".[develop,vulcan,atmodeller,inference]"
bash tools/get_vulcan.sh --force
9. Enable pre-commit hooks¶
pre-commit install -f
10. Download reference data¶
Download the essential reference data files (the default-config and tutorial k-tables, stellar spectra, the PHOENIX grid of the default star, and the interior tables, including the structure-solver EOS):
proteus get spectral -n Honeyside -b 48
proteus get spectral -n Dayspring -b 48
proteus get stellar
proteus get phoenix --feh 0.0 --alpha 0.0
proteus get interiordata
The PHOENIX grid is in the essential set because the default star, which a
config without a [star] section uses, takes its spectrum from it.
Running proteus get spectral without arguments downloads every
spectral file group (~7.5 GB).
For additional datasets (MUSCLES spectra, reference data), use:
proteus get muscles --all
proteus get reference
11. Done!¶
Verify the installation:
proteus doctor
proteus start --offline -c input/dummy.toml