Installation

Installation on Linux

With Anaconda

To install S2shores on Linux using Anaconda, you’ll first need to create a Conda environment with a compatible version of Python and libgdal. Once the environment is set up, you can install S2shores via pip.

Please follow these steps:

$ conda create -n env_name -y
$ conda activate env_name
$ conda install python=3.12 libgdal=3.10 -c conda-forge -y
$ pip install GDAL==3.10
$ pip install s2shores==1.0.0 --no-cache-dir

With pip

If you are not using Anaconda, you need to manually install GDAL and its development libraries before installing S2shores.

Please follow these steps:

$ sudo add-apt-repository ppa:ubuntugis/ppa && sudo apt-get update
$ sudo apt-get update
$ sudo apt-get install gdal-bin
$ sudo apt-get install libgdal-dev
$ export CPLUS_INCLUDE_PATH=/usr/include/gdal
$ export C_INCLUDE_PATH=/usr/include/gdal

Once GDAL is installed and the paths are correctly set, you can create a Python virtual environment and install S2shores with pip.

$ python -m venv env_name
$ source env_name/bin/activate
$ pip install GDAL #Regarding the libgdal-dev version available on your system
$ pip install s2shores==1.0.0 --no-cache-dir

Installation on Windows

With Anaconda

To install S2shores on Windows using Anaconda, create a Conda environment, install the required version of GDAL, and then use pip to install S2shores.

Please follow these steps:

$ conda create -n env_name -y
$ conda activate env_name
$ conda install gdal=3.10 -c conda-forge -y
$ pip install s2shores==1.0.0 --no-cache-dir