This is development documentation. Some features are not available in the stable release. View stable documentation.

Installation Guide for Mac OSX and Linux

This guide covers different methods for installing SpectroChemPy on MacOS or Linux.

Requirements

  • Python 3.11 or newer

# Check python version
python --version  # Should be 3.11 or newer

Environment Setup

uv is the recommended tool for most users. Install uv if you do not have it yet:

curl -LsSf https://astral.sh/uv/install.sh | sh

Then create a virtual environment:

# Create environment with Python 3.13
uv venv scpy-env --python 3.13

# Activate it
source scpy-env/bin/activate

Install SpectroChemPy

uv pip install spectrochempy

# or if you want to install interactive version (including jupyter)
uv pip install "spectrochempy[interactive]"

Latest prerelease:

uv pip install spectrochempy --pre

Verifying Installation

  1. Start IPython:

    ipython
    
  2. Import SpectroChemPy:

    In [1]: import spectrochempy as scp
    

Next Steps

Proceed to the User Guide and Tutorials to start using SpectroChemPy.

Note

If you encounter any issues, see Getting Help for support options.