Installing STIR with conda: Difference between revisions
stir>Krthie →Installing STIR with conda: use environment |
m 3 revisions imported |
(No difference)
|
Latest revision as of 00:13, 21 November 2024
Installing STIR with conda[edit]
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.