Install¶
SVInsight has been tested with Python 3.9 through 3.12. It also requires the following dependencies: census, factor_analyzer, geopandas, numpy, pandas, pytest, PyYAML, scikit_learn, openpyxl, and matplotlib.
Installation via pip¶
To pip-install this package use the following command:
$ pip install SVInsight
SVInsight can then be imported into python:
>>> from svinsight import SVInsight as svi
SVInsight has dependencies that rely on gdal, which may require its own prior installation based on your operating system and coding environment. For example:
On macOS:
brew install gdal
On Ubuntu:
sudo apt-get install gdal-bin libgdal-dev
On Windows:
pip install gdal==<version> --find-links https://www.lfd.uci.edu/~gohlke/pythonlibs/
An alternative work around that has been known to work is to pip install the package in a conda environment after first installing the geopandas package, which will install the necessary dependencies for gdal.
Installation via conda¶
This package will be available from conda-forge soon.