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]"

Development version:

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.