Installation Guide for Mac OSX and Linux
This guide covers different methods for installing SpectroChemPy on MacOS or Linux.
Requirements
Python 3.10 or newer
# Check python version
python --version # Should be 3.10 or newer
Environment Setup
We strongly recommend using mamba as it’s significantly faster at resolving dependencies.
Install Mambaforge
Download and install Mambaforge
Add required channels:
mamba config --add channels conda-forge
mamba config --add channels spectrocat
Create and activate environment
# Create new environment
mamba create -n scpy python=3.10
# Activate it
mamba activate scpy
# Create environment
python -m venv scpy-env
# Activate it
source scpy-env/bin/activate
# Update pip
python -m pip install --upgrade pip
Install SpectroChemPy
Stable version
mamba install -c spectrocat spectrochempy
Development version
mamba install -c spectrocat/label/dev spectrochempy
python -m pip install spectrochempy
# or if you want to install interactive version (including jupyter)
python -m pip install "spectrochempy[interactive]"
Verifying Installation
Start IPython:
ipython
Import SpectroChemPy:
In [1]: from spectrochempy import *
You should see:
SpectroChemPy's API - v.0.6.10 © Copyright 2014-2025 - A.Travert & C.Fernandez @ LCS
Next Steps
Proceed to the userguide to start using SpectroChemPy.
Note
If you encounter any issues, see Getting Help for support options.