Anaconda Python 3

One of the easiest ways to install a Python 3 distribution for iSpec on Linux without root permissions is by using Anaconda.


Follow the instructions, anaconda will be installed in /home/your_user/anaconda3/ by default. The installer will ask if you want to initialize/modify .bashrc or .bash_profile, select 'yes'. The installer should have added to your .bashrc or .bash_profile files (in your home directory) something like this:

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/your_user/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
    if [ -f "/home/your_user/anaconda3/etc/profile.d/" ]; then
        . "/home/your_user/anaconda3/etc/profile.d/"
        export PATH="/home/your_user/anaconda3/bin:$PATH"
unset __conda_setup
# <<< conda initialize <<<
  • Close all the terminals and open a new one in order to re-load this new setup.

  • Install a library that does not come by default and that it is needed by iSpec:
conda update conda
conda update --all
conda install lockfile dill
  • On Debian based GNU/Linux distributions such as Ubuntu or Linux Mint, the following packages should be installed by using the package manager (e.g. sudo apt install package_name) and its the only step that requires root permissions (fortunately, many servers already include these tools):
sudo apt install build-essential gfortran libgfortran3
  • Finally, download iSpec source code, decompress it and move to $HOME/iSpec/. Open a terminal in the iSpec directory and run:
make clean
make spectrum
make turbospectrum
make moog