yannforget / pylandsat

Search, download, and preprocess Landsat imagery 🛰️
MIT License
65 stars 18 forks source link

Add Prerequisites to Readme #16

Open relativityhd opened 9 months ago

relativityhd commented 9 months ago

The Problem

I've run into multiple problems trying to install the library. Having a look on the Issues of this Repo others run into similar issues. These are:

Proposed solution

Add to Readme, that Python needs to be installed with some feature flags. This can be done with PyEnv and the following commands:

$ sudo apt update; sudo apt install build-essential libssl-dev zlib1g-dev \
libbz2-dev libreadline-dev libsqlite3-dev libsqlite3-mod-spatialite curl \
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
$  PYTHON_CONFIGURE_OPTS="--enable-loadable-sqlite-extensions --enable-optimizations" pyenv install 3.11

It would also be nice, if the sync-database would per default force-sync: pylandsat sync-database -f