Installation from Sources
Prerequisites
Git Installation
Install git
if not already present:
macOS:
brew install git
or via XCodeLinux:
sudo apt-get install git
(Ubuntu/Debian) or equivalentWindows: 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
# Create environment
python -m venv scpy-env
source scpy-env/bin/activate # Linux/macOS
# or
scpy-env\Scripts\activate # Windows
# Install package
python -m pip install -e .
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.