Because rtree is called the c interface to https://libspatialindex.org/install.html download the corresponding version, linux or windows are installed to
mkdir build
cd build
cmake ..
make
make install
ldconfig
If you have an error,
OSError: libspatialindex_c.so.4: cannot open shared object file: No such file or directory
https://www.cnblogs.com/kaituorensheng/p/4948046.html
cd /etc/ld.so.conf.d/
Manually add / usr / local / lib /