Installationο
We recommend creating a dedicated Python 3.12 conda environment first:
conda create -n spectral-unmixing python=3.12
conda activate spectral-unmixing
Note
We have tested spectral-unmixing with Python 3.12. Newer versions may work but
are not guaranteed to be compatible. Older Python versions are not supported,
as spectral-unmixing relies on OMIO for
reading microscopy data, and OMIO requires Python 3.12 or newer.
Install from PyPIο
The standard installation path is:
pip install spectral-unmixing
Upgrade an existing installationο
To upgrade an existing PyPI installation:
pip install --upgrade spectral-unmixing
Developer installationο
To work on the repository locally:
git clone https://github.com/FabrizioMusacchio/spectral-unmixing.git
cd spectral-unmixing
pip install -e .
To develop the package and build the documentation locally:
pip install -e .[dev,docs]
Runtime dependenciesο
Main runtime dependencies currently include:
numpyomio-microscopyscipyscikit-imagepystackregipykernel
Documentation build dependenciesο
If you want to build the Sphinx documentation locally, install the package
with the docs extra:
pip install -e .[docs]
Quick verificationο
After installation, you can verify that the package imports correctly:
python -c "import spectral_unmixing; print(spectral_unmixing.__all__)"