Installation¶
Predspot requires Python 3.10 or newer and is published on PyPI:
Optional extras add features that need heavier dependencies:
| Extra | Installs | Enables |
|---|---|---|
contour |
geojsoncontour | contour_geojson — GeoJSON contour export |
examples |
jupyter, nbconvert, ipykernel | Running the example notebooks |
dev |
pytest, ruff, build, twine | Running the test suite and building the package |
The core dependencies — pandas, GeoPandas, Shapely, NumPy, SciPy, scikit-learn, statsmodels, Matplotlib and osmnx (study areas from OpenStreetMap) — are installed automatically.
conda users
GeoPandas and its GEOS/PROJ stack install fine from PyPI wheels nowadays,
but if you prefer conda: conda install -c conda-forge geopandas first,
then pip install predspot in the same environment.
From source¶
git clone https://github.com/adaj/predspot.git
cd predspot
pip install -e ".[dev,contour,examples]"
pytest
See Contributing for the development workflow.