1.8. How to install SPEX using Anaconda

SPEX is now also available through Anaconda for Linux and MacOS. The instructions below assume that you have a working version of Anaconda on your system (otherwise see Anaconda download or Miniconda, which installs the minimum needed).

1.8.1. SPEX status at Anaconda

Current SPEX version: Last SPEX version
Platforms for which SPEX is available: Platforms for which SPEX is available
Total number of downloads of SPEX through Anaconda: Total number of downloads of SPEX through Anaconda

1.8.3. Install SPEX using conda

Installing SPEX in a conda environment is as simple as:

(spex) user@linux:~> conda install -c spexxray spex

Conda will automatically install the dependencies of SPEX. It is possible that you need to re-initialize the conda environment to make SPEX run directly from the command line:

(spex) user@linux:~> conda deactivate
(base) user@linux:~> conda activate spex
(spex) user@linux:~> spex
 Welcome user to SPEX version 3.08.00

 NEW in this version of SPEX:
21-04-2023 Added Quick CIE calculations (var calc qc)
21-04-2023 Added Shakura-Sunyaev model for accretion disk
04-03-2024 Added Speith model for relativistic broadening of lines

 Currently using SPEXACT version 2.07.00. Type `help var calc` for details.

SPEX> quit
 Thank you for using SPEX

You probably want to install more packages in this environment for your purposes, like Jupyterlab or other scientific packages. This can be done using the conda install command as well.

On an Apple Mac, it is necessary to install an Xserver, like XQuartz.

1.8.4. Running SPEX in conda

Every time that you want to use SPEX in a new terminal, you have to activate the spex environment:

(base) user@linux:~> conda activate spex
(spex) user@linux:~>

After this command also the python interface of SPEX should be automatically initialized:

(spex) user@linux:~> python
>>> from pyspex.spex import Session
>>> s=Session()

1.8.5. Pyspextools in conda

Our python support package pyspextools is now also available on Conda:

(spex) user@linux:~> conda install -c spexxray pyspextools

1.8.6. More information

See our SPEX page at Anaconda for more information.