At the command line via pip:
pip install trianglechain
or to get the latest version:
pip install git+https://cosmo-gitlab.phys.ethz.ch/cosmo_public/trianglechain.git