For installing the pre-build python packages it is possible to just do

pip install cosmotool

At the time of writing (Dec 22nd 2022), the binary package were prebuilt for linux for python 3.6 to python 3.9.

To build from source you have to obtain the software from bitbucket using git.