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

# Install Mambaforge
# Get it from: https://github.com/conda-forge/miniforge#mambaforge

# Create environment
mamba env create -n scpy -f environments/environment.yml
mamba activate scpy

# Install package
python -m pip install -e . --no-deps

Verifying Installation

from spectrochempy import *
print(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.