My only line of code is
import geopandas
and it gives me the error
OSError: Could not find libspatialindex_c library file
If you are using MacOS, it's as simple as follow:
brew install spatialindex
pip install rtree
If you are working on linux environment you have to build this from source:
Install spatialindex
curl -L https://github.com/libspatialindex/libspatialindex/archive/1.8.5.tar.gz | tar xz
cd libspatialindex-1.8.5/
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
pip install rtree