Installation Guide#
Install HTTomo as a PyPi package#
$ pip install httomo # this will install the CPU-only version
$ pip install httomo httomolibgpu # this will install the GPU backend
Install HTTomo as a pre-built conda Python package#
This installation is preferable as it should take care all of dependencies including Supported libraries by getting them from the dedicated anaconda channel.
$ conda env create --name httomo # create a fresh conda environment
$ conda install "httomo/linux-64::httomo * py310_openmpi_regular*" -c conda-forge
Install as a Python module#
If installation above for some reason is not working for you, then the best way to install HTTomo is to create conda environment first and then pip install HTTomo into it. You will need to git clone HTTomo repository to your disk first. Use environment.yml file to install the GPU-supported HTTomo. For CPU-only version, please use environment-cpu.yml instead.
$ git clone git@github.com:DiamondLightSource/HTTomo.git # clone the repo
$ conda env create --name httomo --file conda/environment.yml # install dependencies for GPU version
$ conda activate httomo # activate environment
$ pip install . # Install the module
Setup HTTomo development environment:#
$ pip install -e .[dev] # development mode
Build HTTomo as a conda Python package#
$ conda build conda/recipe/ -c conda-forge -c https://conda.anaconda.org/httomo/ --no-test