Installation#

We recommend a dedicated conda environment to keep ForMoSA’s dependencies isolated from the rest of your Python stack.

Setting Up a Conda Environment#

For all users:

$ conda create -n env_formosa python=3.12
$ conda activate env_formosa

For macOS users with Apple Silicon (M1/M2/M3):

$ CONDA_SUBDIR=osx-arm64 conda create -n env_formosa python=3.12 numpy -c conda-forge
$ conda activate env_formosa
$ conda config --env --set subdir osx-arm64

Learn more about conda environments in the conda documentation.

A. Install from PyPI#

The quickest route. pip handles almost all dependencies automatically.

$ pip install ForMoSA
$ conda install dask netCDF4 bottleneck

That’s it — you’re ready to run your first analysis.

B. Install from Source#

For development or to track the latest changes:

$ git clone https://github.com/exoAtmospheres/ForMoSA.git
$ cd ForMoSA
$ pip install -e .
$ conda install dask netCDF4 bottleneck

The -e flag installs in editable mode, so any local changes to the source are reflected immediately without reinstalling.