Installing STIR with conda
Installing STIR with conda
Users of conda (Anaconda, miniconda etc) can install STIR without compilation. The following creates a conda environment which includes both STIR and matplotlib:
conda config --add channels conda-forge conda config --set channel_priority strict conda create -n stirenv stir matplotlib conda activate stirenv # use STIR executable OSMAPOSL some.par # use Python python >>> import stir # deactivate the environment conda deactive
See the conda documentation on managing environments for more information. Note that conda recommends installing all packages that you want at the same time, so you probably want to add other packages to the list above.
This should work on Linux and Windows. A MacOS package is still pending end 2020, check current status in the relevant issue
For more details, check the STIR feedstock.