Installation Guide for Windows
This guide covers different methods for installing SpectroChemPy on Windows.
Requirements
Python 3.11 or newer
# Check python version
python --version # Should be 3.11 or newer
Environment Setup
Install uv:
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Restart your terminal after installation.
Create environment:
uv venv scpy --python 3.13 scpy\Scripts\activate
Install Miniforge:
Download Miniforge
Run the installer
Open cmd prompt
Add required channels:
mamba config --add channels conda-forge mamba config --add channels spectrocat
Create environment:
mamba create --name scpy python=3.13 mamba activate scpy
Open Command Prompt
Create virtual environment:
python -m venv scpy scpy\Scripts\activate
Upgrade pip:
python -m pip install --upgrade pip
Installing SpectroChemPy
uv pip install spectrochempy
:: or with interactive extras
uv pip install "spectrochempy[interactive]"
Development version:
uv pip install spectrochempy --pre
mamba install -c spectrocat spectrochempy
Development version:
mamba install -c spectrocat/label/dev spectrochempy
python -m pip install spectrochempy
:: or if you want to install interactive version (including jupyter)
python -m pip install "spectrochempy[interactive]"
Verifying Installation
Start IPython:
ipython
Import SpectroChemPy:
In [1]: import spectrochempy as scp
Additional Tips
Creating a Permanent Environment Shortcut
Create a batch file (bat) with:
@REM launch cmd in scpy environment
@CALL CD C:\<yourWorkingFolder>
@CALL CMD /K C:\<yourMiniforgeFolder>\Scripts\activate.bat scpy
Save as activate-scpy.bat and create a shortcut named “Miniforge prompt (scpy)”.
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.