This is development documentation. Some features are not available in the stable release. View stable documentation.

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

  1. Install uv:

    powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
    

    Restart your terminal after installation.

  2. Create environment:

    uv venv scpy --python 3.13
    scpy\Scripts\activate
    

Installing SpectroChemPy

uv pip install spectrochempy

:: or with interactive extras
uv pip install "spectrochempy[interactive]"

Latest prerelease:

uv pip install spectrochempy --pre

Verifying Installation

  1. Start IPython:

    ipython
    
  2. 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.