Installation from Sources

Prerequisites

Git Installation

Install git if not already present:

  • macOS: brew install git or via XCode

  • Linux: sudo apt-get install git (Ubuntu/Debian) or equivalent

  • Windows: Download from git-scm.com

Verify installation:

git --version

Getting the Source Code

Clone the repository:

git clone https://github.com/spectrochempy/spectrochempy.git
cd spectrochempy

Installation Methods

# Create environment
uv venv --python 3.13
source .venv/bin/activate  # Linux/macOS
# or
.venv\Scripts\activate     # Windows

# Install package in editable mode
uv pip install -e ".[dev]"

Verifying Installation

import spectrochempy as scp
print(scp.__version__)

Updating SpectroChemPy

Update source code:

git pull origin master --ff-only

Reinstall package:

python -m pip install .

Note

For development setup and contribution guidelines, see the Developer’s Guide.