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:
.. code-block:: console
$ pip install SVInsight
`SVInsight` can then be imported into python:
.. code-block:: 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:
.. code-block:: console
brew install gdal
* On Ubuntu:
.. code-block:: console
sudo apt-get install gdal-bin libgdal-dev
* On Windows:
.. code-block:: console
pip install gdal== --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.