Installation and requirements

ECHO21 package can be installed as

pip install echo21

I have tested the code on Python==3.10.20. Other special packages required:

The following two additional packages are required for simulation of the interacting dark matter (IDM) model. Because CLASS requires an older version of Cython, I recommend creating a dedicated environment (such as conda) to avoid conflicts with your existing packages.

  • Cython (tested for 0.29.37; required for IDM)

  • classy (tested for 2.9.4; required for IDM)

Follow the Anaconda website for the steps to install Miniconda. Then follow these steps:

conda create -n echoenv python
conda install numpy scipy matplotlib cython=0.29 gcc_linux-64 gxx_linux-64 make

git clone -b dmeff https://github.com/kboddy/class_public.git
cd class_public
make clean
make

Now the CLASS code should hopefully be installed in your echoenv environment.