Installation

You can install spatial ML from PyPI or from conda-forge using the tool of your choice:

pip install spatialml

Or from conda-forge:

conda install spatialml -c conda-forge

Installing development version

You can either clone the repository:

git clone https://github.com/pysal/spatialml.git
cd spatialml
pip install .

Or install directly from Github:

pip install git+https://github.com/pysal/spatialml.git

The package depends on:

geopandas>=1.1.0
joblib>=1.5.0
libpysal>=4.12
numpy>=2.0.0
scipy>=1.14.0
scikit-learn>=1.5.0
pandas>=2.3.0